Forum Replies Created

Viewing 1 replies (of 1 total)
  • Voilà le patch : fichier patch-v7.2.3.1-p1.diff

    diff --git events-manager.php events-manager.php
    index 146f25e..5b12023 100644
    --- events-manager.php
    +++ events-manager.php
    @@ -1,7 +1,7 @@
    <?php
    /*
    Plugin Name: Events Manager
    -Version: 7.2.3.1
    +Version: 7.2.3.1-p1
    Plugin URI: https://wp-events-plugin.com
    Description: Event registration and booking management for WordPress. Recurring events, locations, webinars, google maps, rss, ical, booking registration and more!
    Author: Pixelite
    @@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    // Setting constants
    use EM\Archetypes;

    -define('EM_VERSION', '7.2.3.1'); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
    +define('EM_VERSION', '7.2.3.1-p1'); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
    define('EM_PRO_MIN_VERSION', '3.7.2'); //self expanatory
    define('EM_PRO_MIN_VERSION_CRITICAL', '3.6.0.2'); //self expanatory
    define('EM_FILE', __FILE__); //an absolute path to this directory
    diff --git includes/js/events-manager.js includes/js/events-manager.js
    index 6ad51fe..6ed1f82 100644
    --- includes/js/events-manager.js
    +++ includes/js/events-manager.js
    @@ -3560,9 +3560,11 @@ jQuery(document).ready( function($){
    calendar_trigger_ajax( calendar, selectedDates[0].getFullYear(), selectedDates[0].getMonth()+1);
    },
    });
    - // this bit fixes issues if the supplied text value has a mismatch with the real text value due to localization differences between WP and flatpickr
    - let month_real_value = monthpicker.val() + '-01';
    - fp.setDate( new Date( month_real_value ) );
    + // let month_real_value = monthpicker.val() + '-01';
    + // fp.setDate( new Date( month_real_value ) );
    + let iso = monthpicker.data('machineValue') || monthpicker.data('machine-value') || monthpicker.attr('value') || '';
    + if (iso && /^\d{4}-\d{2}$/.test(iso))
    + fp.setDate(new Date(+iso.slice(0,4), iso.slice(5,7)-1, 1));
    // add classes to month picker
    monthpicker.addClass('select-toggle');
    }
    diff --git includes/js/src/parts/calendar.js includes/js/src/parts/calendar.js
    index 6eac6fa..2e4dfc0 100644
    --- includes/js/src/parts/calendar.js
    +++ includes/js/src/parts/calendar.js
    @@ -138,8 +138,11 @@ jQuery(document).ready( function($){
    },
    });
    // this bit fixes issues if the supplied text value has a mismatch with the real text value due to localization differences between WP and flatpickr
    - let month_real_value = monthpicker.val() + '-01';
    - fp.setDate( new Date( month_real_value ) );
    + // let month_real_value = monthpicker.val() + '-01';
    + // fp.setDate( new Date( month_real_value ) );
    + let iso = monthpicker.data('machineValue') || monthpicker.data('machine-value') || monthpicker.attr('value') || '';
    + if (iso && /^\d{4}-\d{2}$/.test(iso))
    + fp.setDate(new Date(+iso.slice(0,4), iso.slice(5,7)-1, 1));
    // add classes to month picker
    monthpicker.addClass('select-toggle');
    }

    A appliquer à la racine du plugin :

    scp patch-v7.2.3.1-p1.diff user@your-server:/some-path/wpcontent/plugins/events-manager
    ssh user@your-server

    $ cd /some-path/wpcontent/plugins/events-manager
    $ patch -p0 < patch-v7.2.3.1-p1.diff
Viewing 1 replies (of 1 total)