Plugin Directory

Changeset 3389318


Ignore:
Timestamp:
11/04/2025 04:43:05 AM (5 months ago)
Author:
evcode
Message:

Update to version 1.3.4 from GitHub

Location:
myd-delivery
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • myd-delivery/tags/1.3.4/README.txt

    r3389314 r3389318  
    55Requires at least: 5.5
    66Tested up to: 6.8
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88Requires PHP: 7.4
    99License: GPL-3.0+
     
    7676== Changelog ==
    7777
     78= 1.3.4 =
     79* Changed: code improvements.
     80
    7881= 1.3.3 =
    7982* Changed: code support to print function refactoring in pro version.
  • myd-delivery/tags/1.3.4/includes/telemetry/class-snapshots.php

    r3389314 r3389318  
    2121     */
    2222    public static function capture_snapshot() {
     23        $install_id = get_option( 'myddelivery_install_id', null );
     24        if ( $install_id === null ) {
     25            return null;
     26        }
     27
    2328        $raw_categories = \get_option( 'myddelivery-list-menu-categories', '' );
    2429        $categories_count = 0;
     
    6368        $whatsapp_redirect_enabled = (bool) get_option( 'myddelivery-option-redirect-whatsapp', false );
    6469
    65         $install_id = get_option( 'myddelivery_install_id' );
    6670        $install_started_at = get_option( 'myddelivery_install_started_at' );
    6771        $first_plugin_version = get_option( 'myddelivery_first_plugin_version' );
     
    108112        }
    109113
    110         $snapshots[] = self::capture_snapshot();
     114        $snapshot_to_add = self::capture_snapshot();
     115        if ( $snapshot_to_add === null ) {
     116            return;
     117        }
     118
     119        $snapshots[] = $snapshot_to_add;
    111120
    112121        if ( count( $snapshots ) > self::MAX_SNAPSHOTS ) {
  • myd-delivery/tags/1.3.4/includes/telemetry/class-telemetry-fallback.php

    r3389122 r3389318  
    1616     */
    1717    public static function ensure_defaults() {
    18         if ( \get_option( 'myddelivery_install_id' ) === '' ) {
     18        if ( \get_option( 'myddelivery_install_id', null ) === null ) {
    1919            \update_option( 'myddelivery_install_id', \wp_generate_uuid4() );
    2020        }
    2121
    22         if ( \get_option( 'myddelivery_install_started_at' ) === '' ) {
     22        if ( \get_option( 'myddelivery_install_started_at', null ) === null ) {
    2323            \update_option( 'myddelivery_install_started_at', \gmdate( 'Y-m-d\TH:i:s\Z' ) );
    2424        }
    2525
    26         if ( \get_option( 'myddelivery_first_plugin_version' )  === '' ) {
     26        if ( \get_option( 'myddelivery_first_plugin_version', null ) === null ) {
    2727            \update_option( 'myddelivery_first_plugin_version', defined( 'MYDDELIVERY_VERSION' ) ? MYDDELIVERY_VERSION : 'unknown' );
    2828        }
  • myd-delivery/tags/1.3.4/myd-delivery.php

    r3389314 r3389318  
    66 * Author: EduardoVillao.me
    77 * Author URI: https://eduardovillao.me/
    8  * Version: 1.3.3
     8 * Version: 1.3.4
    99 * Requires PHP: 7.4
    1010 * Requires at least: 5.5
     
    2626define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) );
    2727define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) );
    28 define( 'MYDDELIVERY_VERSION', '1.3.3' );
     28define( 'MYDDELIVERY_VERSION', '1.3.4' );
    2929define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' );
    3030define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' );
  • myd-delivery/trunk/README.txt

    r3389314 r3389318  
    55Requires at least: 5.5
    66Tested up to: 6.8
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88Requires PHP: 7.4
    99License: GPL-3.0+
     
    7676== Changelog ==
    7777
     78= 1.3.4 =
     79* Changed: code improvements.
     80
    7881= 1.3.3 =
    7982* Changed: code support to print function refactoring in pro version.
  • myd-delivery/trunk/includes/telemetry/class-snapshots.php

    r3389314 r3389318  
    2121     */
    2222    public static function capture_snapshot() {
     23        $install_id = get_option( 'myddelivery_install_id', null );
     24        if ( $install_id === null ) {
     25            return null;
     26        }
     27
    2328        $raw_categories = \get_option( 'myddelivery-list-menu-categories', '' );
    2429        $categories_count = 0;
     
    6368        $whatsapp_redirect_enabled = (bool) get_option( 'myddelivery-option-redirect-whatsapp', false );
    6469
    65         $install_id = get_option( 'myddelivery_install_id' );
    6670        $install_started_at = get_option( 'myddelivery_install_started_at' );
    6771        $first_plugin_version = get_option( 'myddelivery_first_plugin_version' );
     
    108112        }
    109113
    110         $snapshots[] = self::capture_snapshot();
     114        $snapshot_to_add = self::capture_snapshot();
     115        if ( $snapshot_to_add === null ) {
     116            return;
     117        }
     118
     119        $snapshots[] = $snapshot_to_add;
    111120
    112121        if ( count( $snapshots ) > self::MAX_SNAPSHOTS ) {
  • myd-delivery/trunk/includes/telemetry/class-telemetry-fallback.php

    r3389122 r3389318  
    1616     */
    1717    public static function ensure_defaults() {
    18         if ( \get_option( 'myddelivery_install_id' ) === '' ) {
     18        if ( \get_option( 'myddelivery_install_id', null ) === null ) {
    1919            \update_option( 'myddelivery_install_id', \wp_generate_uuid4() );
    2020        }
    2121
    22         if ( \get_option( 'myddelivery_install_started_at' ) === '' ) {
     22        if ( \get_option( 'myddelivery_install_started_at', null ) === null ) {
    2323            \update_option( 'myddelivery_install_started_at', \gmdate( 'Y-m-d\TH:i:s\Z' ) );
    2424        }
    2525
    26         if ( \get_option( 'myddelivery_first_plugin_version' )  === '' ) {
     26        if ( \get_option( 'myddelivery_first_plugin_version', null ) === null ) {
    2727            \update_option( 'myddelivery_first_plugin_version', defined( 'MYDDELIVERY_VERSION' ) ? MYDDELIVERY_VERSION : 'unknown' );
    2828        }
  • myd-delivery/trunk/myd-delivery.php

    r3389314 r3389318  
    66 * Author: EduardoVillao.me
    77 * Author URI: https://eduardovillao.me/
    8  * Version: 1.3.3
     8 * Version: 1.3.4
    99 * Requires PHP: 7.4
    1010 * Requires at least: 5.5
     
    2626define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) );
    2727define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) );
    28 define( 'MYDDELIVERY_VERSION', '1.3.3' );
     28define( 'MYDDELIVERY_VERSION', '1.3.4' );
    2929define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' );
    3030define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' );
Note: See TracChangeset for help on using the changeset viewer.