Changeset 3389318
- Timestamp:
- 11/04/2025 04:43:05 AM (5 months ago)
- Location:
- myd-delivery
- Files:
-
- 8 edited
- 1 copied
-
tags/1.3.4 (copied) (copied from myd-delivery/trunk)
-
tags/1.3.4/README.txt (modified) (2 diffs)
-
tags/1.3.4/includes/telemetry/class-snapshots.php (modified) (3 diffs)
-
tags/1.3.4/includes/telemetry/class-telemetry-fallback.php (modified) (1 diff)
-
tags/1.3.4/myd-delivery.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/telemetry/class-snapshots.php (modified) (3 diffs)
-
trunk/includes/telemetry/class-telemetry-fallback.php (modified) (1 diff)
-
trunk/myd-delivery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
myd-delivery/tags/1.3.4/README.txt
r3389314 r3389318 5 5 Requires at least: 5.5 6 6 Tested up to: 6.8 7 Stable tag: 1.3. 37 Stable tag: 1.3.4 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 76 76 == Changelog == 77 77 78 = 1.3.4 = 79 * Changed: code improvements. 80 78 81 = 1.3.3 = 79 82 * Changed: code support to print function refactoring in pro version. -
myd-delivery/tags/1.3.4/includes/telemetry/class-snapshots.php
r3389314 r3389318 21 21 */ 22 22 public static function capture_snapshot() { 23 $install_id = get_option( 'myddelivery_install_id', null ); 24 if ( $install_id === null ) { 25 return null; 26 } 27 23 28 $raw_categories = \get_option( 'myddelivery-list-menu-categories', '' ); 24 29 $categories_count = 0; … … 63 68 $whatsapp_redirect_enabled = (bool) get_option( 'myddelivery-option-redirect-whatsapp', false ); 64 69 65 $install_id = get_option( 'myddelivery_install_id' );66 70 $install_started_at = get_option( 'myddelivery_install_started_at' ); 67 71 $first_plugin_version = get_option( 'myddelivery_first_plugin_version' ); … … 108 112 } 109 113 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; 111 120 112 121 if ( count( $snapshots ) > self::MAX_SNAPSHOTS ) { -
myd-delivery/tags/1.3.4/includes/telemetry/class-telemetry-fallback.php
r3389122 r3389318 16 16 */ 17 17 public static function ensure_defaults() { 18 if ( \get_option( 'myddelivery_install_id' ) === '') {18 if ( \get_option( 'myddelivery_install_id', null ) === null ) { 19 19 \update_option( 'myddelivery_install_id', \wp_generate_uuid4() ); 20 20 } 21 21 22 if ( \get_option( 'myddelivery_install_started_at' ) === '') {22 if ( \get_option( 'myddelivery_install_started_at', null ) === null ) { 23 23 \update_option( 'myddelivery_install_started_at', \gmdate( 'Y-m-d\TH:i:s\Z' ) ); 24 24 } 25 25 26 if ( \get_option( 'myddelivery_first_plugin_version' ) === '') {26 if ( \get_option( 'myddelivery_first_plugin_version', null ) === null ) { 27 27 \update_option( 'myddelivery_first_plugin_version', defined( 'MYDDELIVERY_VERSION' ) ? MYDDELIVERY_VERSION : 'unknown' ); 28 28 } -
myd-delivery/tags/1.3.4/myd-delivery.php
r3389314 r3389318 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.3. 38 * Version: 1.3.4 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.3. 3' );28 define( 'MYDDELIVERY_VERSION', '1.3.4' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' ); -
myd-delivery/trunk/README.txt
r3389314 r3389318 5 5 Requires at least: 5.5 6 6 Tested up to: 6.8 7 Stable tag: 1.3. 37 Stable tag: 1.3.4 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0+ … … 76 76 == Changelog == 77 77 78 = 1.3.4 = 79 * Changed: code improvements. 80 78 81 = 1.3.3 = 79 82 * Changed: code support to print function refactoring in pro version. -
myd-delivery/trunk/includes/telemetry/class-snapshots.php
r3389314 r3389318 21 21 */ 22 22 public static function capture_snapshot() { 23 $install_id = get_option( 'myddelivery_install_id', null ); 24 if ( $install_id === null ) { 25 return null; 26 } 27 23 28 $raw_categories = \get_option( 'myddelivery-list-menu-categories', '' ); 24 29 $categories_count = 0; … … 63 68 $whatsapp_redirect_enabled = (bool) get_option( 'myddelivery-option-redirect-whatsapp', false ); 64 69 65 $install_id = get_option( 'myddelivery_install_id' );66 70 $install_started_at = get_option( 'myddelivery_install_started_at' ); 67 71 $first_plugin_version = get_option( 'myddelivery_first_plugin_version' ); … … 108 112 } 109 113 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; 111 120 112 121 if ( count( $snapshots ) > self::MAX_SNAPSHOTS ) { -
myd-delivery/trunk/includes/telemetry/class-telemetry-fallback.php
r3389122 r3389318 16 16 */ 17 17 public static function ensure_defaults() { 18 if ( \get_option( 'myddelivery_install_id' ) === '') {18 if ( \get_option( 'myddelivery_install_id', null ) === null ) { 19 19 \update_option( 'myddelivery_install_id', \wp_generate_uuid4() ); 20 20 } 21 21 22 if ( \get_option( 'myddelivery_install_started_at' ) === '') {22 if ( \get_option( 'myddelivery_install_started_at', null ) === null ) { 23 23 \update_option( 'myddelivery_install_started_at', \gmdate( 'Y-m-d\TH:i:s\Z' ) ); 24 24 } 25 25 26 if ( \get_option( 'myddelivery_first_plugin_version' ) === '') {26 if ( \get_option( 'myddelivery_first_plugin_version', null ) === null ) { 27 27 \update_option( 'myddelivery_first_plugin_version', defined( 'MYDDELIVERY_VERSION' ) ? MYDDELIVERY_VERSION : 'unknown' ); 28 28 } -
myd-delivery/trunk/myd-delivery.php
r3389314 r3389318 6 6 * Author: EduardoVillao.me 7 7 * Author URI: https://eduardovillao.me/ 8 * Version: 1.3. 38 * Version: 1.3.4 9 9 * Requires PHP: 7.4 10 10 * Requires at least: 5.5 … … 26 26 define( 'MYDDELIVERY_BASENAME', plugin_basename( __FILE__ ) ); 27 27 define( 'MYDDELIVERY_DIRNAME', plugin_basename( __DIR__ ) ); 28 define( 'MYDDELIVERY_VERSION', '1.3. 3' );28 define( 'MYDDELIVERY_VERSION', '1.3.4' ); 29 29 define( 'MYDDELIVERY_MIN_PHP_VERSION', '7.4' ); 30 30 define( 'MYDDELIVERY_MIN_WP_VERSION', '5.5' );
Note: See TracChangeset
for help on using the changeset viewer.