Plugin Directory

Changeset 3742480


Ignore:
Timestamp:
10/12/2026 08:34:26 PM (5 days ago)
Author:
bluebrainmedia
Message:

Release 1.1.1

Location:
maple-parcel
Files:
51 added
4 edited

Legend:

Unmodified
Added
Removed
  • maple-parcel/trunk/includes/Admin/ProUpsell.php

    r3739921 r3742480  
    6363                $features = array(
    6464                        array(
     65                                __( 'Canada Post labels', 'maple-parcel' ),
     66                                __( 'Make a label for a parcel within Canada from the order screen, and the tracking number goes to your customer.', 'maple-parcel' ),
     67                        ),
     68                        array(
    6569                                __( 'Pack into your own boxes', 'maple-parcel' ),
    6670                                __( 'List the boxes you ship in once. Each order is quoted as the fewest boxes that hold it, at each box\'s real size and weight.', 'maple-parcel' ),
    … …  
    7882                <div class="bbmmp-pro-panel" style="max-width: 60em; margin-top: 2em;">
    7983                        <h2><?php esc_html_e( 'What Pro adds', 'maple-parcel' ); ?></h2>
    80                         <p><?php esc_html_e( 'Maple Parcel Pro is a separate plugin for stores that want more say over their shipping prices. Everything on this page works the same with or without it.', 'maple-parcel' ); ?></p>
     84                        <p><?php esc_html_e( 'Maple Parcel Pro is a separate plugin for stores that want labels and more say over their shipping prices. Everything on this page works the same with or without it.', 'maple-parcel' ); ?></p>
    8185                        <ul style="list-style: disc; padding-left: 1.5em;">
    8286                                <?php foreach ( $features as $feature ) : ?>
  • maple-parcel/trunk/includes/uninstall-cleanup.php

    r3739921 r3742480  
    99 * after_uninstall action in maple-parcel.php (the premium zip cannot ship an
    1010 * uninstall.php). Both need it, so it lives here.
     11 *
     12 * Free and Pro share every setting, so nothing is deleted while the other
     13 * edition is still installed: deleting the free plugin after upgrading must
     14 * not take Pro's keys and zones with it.
    1115 */
    1216
    … …  
    1418
    1519defined( 'ABSPATH' ) || exit;
     20
     21if ( ! function_exists( 'bbmmp_other_edition_installed' ) ) {
     22        /**
     23         * Whether another copy of Maple Parcel (free or Pro, in any folder) is
     24         * installed besides the one being uninstalled.
     25         *
     26         * @param string $self_dir Folder name of the copy being uninstalled.
     27         */
     28        function bbmmp_other_edition_installed( string $self_dir ): bool {
     29                if ( ! function_exists( 'get_plugins' ) ) {
     30                        require_once ABSPATH . 'wp-admin/includes/plugin.php';
     31                }
     32
     33                foreach ( get_plugins() as $file => $data ) {
     34                        if ( 'maple-parcel' === ( $data['TextDomain'] ?? '' ) && dirname( $file ) !== $self_dir ) {
     35                                return true;
     36                        }
     37                }
     38
     39                return false;
     40        }
     41}
    1642
    1743if ( ! function_exists( 'bbmmp_uninstall_cleanup' ) ) {
    … …  
    2248        function bbmmp_uninstall_cleanup(): void {
    2349                global $wpdb;
     50
     51                // The folder this file sits in (includes/) belongs to the copy being uninstalled.
     52                if ( bbmmp_other_edition_installed( basename( dirname( __DIR__ ) ) ) ) {
     53                        return;
     54                }
    2455
    2556                // Our own options (bbmmp_health and any added later).
  • maple-parcel/trunk/maple-parcel.php

    r3739921 r3742480  
    44 * Plugin URI:        https://bluebrainmedia.ca/maple-parcel/
    55 * Description:       Live Canada Post rates at WooCommerce checkout, using your own keys from Canada Post's new Developer Portal.
    6  * Version:           1.1.0
     6 * Version:           1.1.1
    77 * Requires at least: 6.8
    88 * Requires PHP:      8.2
    … …  
    6060}
    6161
    62 define( 'BBMMP_VERSION', '1.1.0' );
     62define( 'BBMMP_VERSION', '1.1.1' );
    6363define( 'BBMMP_FILE', __FILE__ );
    6464define( 'BBMMP_PATH', plugin_dir_path( __FILE__ ) );
  • maple-parcel/trunk/readme.txt

    r3739921 r3742480  
    55Tested up to: 7.1
    66Requires PHP: 8.2
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6767== Changelog ==
    6868
     69= 1.1.1 =
     70* Fixed: if you upgrade to Pro and then delete this free version, your Canada Post keys and shipping zone settings are now kept for Pro. Before, deleting it cleared them.
     71* The "What Pro adds" panel now mentions Canada Post labels.
     72
    6973= 1.1.0 =
    7074* Fixed: the order screen no longer shows an internal "_bbmmp_service" line under the shipping method.
    … …  
    7882== Upgrade Notice ==
    7983
     84= 1.1.1 =
     85Update before you upgrade to Pro: deleting the free version no longer clears the settings Pro uses.
     86
    8087= 1.1.0 =
    8188Tidies the order screen: an internal shipping note no longer shows under the shipping method.
Note: See TracChangeset for help on using the changeset viewer.