Changeset 3254251
- Timestamp:
- 03/11/2025 05:22:51 PM (9 months ago)
- Location:
- advanced-ads
- Files:
-
- 12 edited
- 1 copied
-
tags/2.0.2 (copied) (copied from advanced-ads/trunk)
-
tags/2.0.2/advanced-ads.php (modified) (2 diffs)
-
tags/2.0.2/includes/ads/class-ad-repository.php (modified) (1 diff)
-
tags/2.0.2/includes/class-plugin.php (modified) (2 diffs)
-
tags/2.0.2/includes/placements/class-placement-repository.php (modified) (1 diff)
-
tags/2.0.2/public/class-advanced-ads.php (modified) (1 diff)
-
tags/2.0.2/readme.txt (modified) (2 diffs)
-
trunk/advanced-ads.php (modified) (2 diffs)
-
trunk/includes/ads/class-ad-repository.php (modified) (1 diff)
-
trunk/includes/class-plugin.php (modified) (2 diffs)
-
trunk/includes/placements/class-placement-repository.php (modified) (1 diff)
-
trunk/public/class-advanced-ads.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-ads/tags/2.0.2/advanced-ads.php
r3253826 r3254251 11 11 * @wordpress-plugin 12 12 * Plugin Name: Advanced Ads 13 * Version: 2.0. 113 * Version: 2.0.2 14 14 * Description: Manage and optimize your ads in WordPress 15 15 * Plugin URI: https://wpadvancedads.com … … 38 38 39 39 define( 'ADVADS_FILE', __FILE__ ); 40 define( 'ADVADS_VERSION', '2.0. 1' );40 define( 'ADVADS_VERSION', '2.0.2' ); 41 41 42 42 // Load the autoloader. -
advanced-ads/tags/2.0.2/includes/ads/class-ad-repository.php
r3253289 r3254251 325 325 $post_meta_values = get_post_meta( $ad->get_id(), self::OPTION_METAKEY, true ); 326 326 327 if ( empty( $post_meta_values ) ) {327 if ( empty( $post_meta_values ) || ! is_array( $post_meta_values ) ) { 328 328 $post_meta_values = []; 329 329 } -
advanced-ads/tags/2.0.2/includes/class-plugin.php
r3253289 r3254251 119 119 add_action( 'init', [ $this, 'load_textdomain' ] ); 120 120 add_action( 'plugins_loaded', [ $this, 'on_plugins_loaded' ], -1 ); 121 add_action( 'widgets_init', [ $this, 'register_widgets' ] ); 121 122 122 123 // Load it all. … … 126 127 $this->modules->initialize(); 127 128 $this->load(); 129 } 130 131 /** 132 * Register the Advanced Ads classic Widget 133 * 134 * @return void 135 */ 136 public function register_widgets(): void { 137 register_widget( '\AdvancedAds\Widget' ); 128 138 } 129 139 -
advanced-ads/tags/2.0.2/includes/placements/class-placement-repository.php
r3253289 r3254251 359 359 $type = get_post_meta( $placement->get_id(), 'type', true ); 360 360 361 if ( empty( $options ) || ! is_array( $options ) ) { 362 $options = []; 363 } 364 361 365 $display_conditions = $options['display'] ?? []; 362 366 $visitor_conditions = $options['visitors'] ?? []; -
advanced-ads/tags/2.0.2/public/class-advanced-ads.php
r3253289 r3254251 631 631 632 632 /** 633 * Get the array with ad placements 634 * 635 * @deprecated 2.0.0 wp_advads_get_all_placements 636 * 637 * @return array $ad_placements 638 */ 639 public static function get_ad_placements_array() { 640 return wp_advads_get_all_placements(); 641 } 642 643 /** 633 644 * Store whether the loop started in an inner `the_content`. 634 645 * -
advanced-ads/tags/2.0.2/readme.txt
r3253826 r3254251 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 17 Stable tag: 2.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 357 357 == Changelog == 358 358 359 = 2.0.2 (March 11, 2025) = 360 361 - Fix: restore the classic Advanced Ads widget 362 - Fix: resolve placement page issue with PHP > 8.0 363 359 364 = 2.0.1 (March 11, 2025) = 360 365 -
advanced-ads/trunk/advanced-ads.php
r3253826 r3254251 11 11 * @wordpress-plugin 12 12 * Plugin Name: Advanced Ads 13 * Version: 2.0. 113 * Version: 2.0.2 14 14 * Description: Manage and optimize your ads in WordPress 15 15 * Plugin URI: https://wpadvancedads.com … … 38 38 39 39 define( 'ADVADS_FILE', __FILE__ ); 40 define( 'ADVADS_VERSION', '2.0. 1' );40 define( 'ADVADS_VERSION', '2.0.2' ); 41 41 42 42 // Load the autoloader. -
advanced-ads/trunk/includes/ads/class-ad-repository.php
r3253289 r3254251 325 325 $post_meta_values = get_post_meta( $ad->get_id(), self::OPTION_METAKEY, true ); 326 326 327 if ( empty( $post_meta_values ) ) {327 if ( empty( $post_meta_values ) || ! is_array( $post_meta_values ) ) { 328 328 $post_meta_values = []; 329 329 } -
advanced-ads/trunk/includes/class-plugin.php
r3253289 r3254251 119 119 add_action( 'init', [ $this, 'load_textdomain' ] ); 120 120 add_action( 'plugins_loaded', [ $this, 'on_plugins_loaded' ], -1 ); 121 add_action( 'widgets_init', [ $this, 'register_widgets' ] ); 121 122 122 123 // Load it all. … … 126 127 $this->modules->initialize(); 127 128 $this->load(); 129 } 130 131 /** 132 * Register the Advanced Ads classic Widget 133 * 134 * @return void 135 */ 136 public function register_widgets(): void { 137 register_widget( '\AdvancedAds\Widget' ); 128 138 } 129 139 -
advanced-ads/trunk/includes/placements/class-placement-repository.php
r3253289 r3254251 359 359 $type = get_post_meta( $placement->get_id(), 'type', true ); 360 360 361 if ( empty( $options ) || ! is_array( $options ) ) { 362 $options = []; 363 } 364 361 365 $display_conditions = $options['display'] ?? []; 362 366 $visitor_conditions = $options['visitors'] ?? []; -
advanced-ads/trunk/public/class-advanced-ads.php
r3253289 r3254251 631 631 632 632 /** 633 * Get the array with ad placements 634 * 635 * @deprecated 2.0.0 wp_advads_get_all_placements 636 * 637 * @return array $ad_placements 638 */ 639 public static function get_ad_placements_array() { 640 return wp_advads_get_all_placements(); 641 } 642 643 /** 633 644 * Store whether the loop started in an inner `the_content`. 634 645 * -
advanced-ads/trunk/readme.txt
r3253826 r3254251 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 17 Stable tag: 2.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 357 357 == Changelog == 358 358 359 = 2.0.2 (March 11, 2025) = 360 361 - Fix: restore the classic Advanced Ads widget 362 - Fix: resolve placement page issue with PHP > 8.0 363 359 364 = 2.0.1 (March 11, 2025) = 360 365
Note: See TracChangeset
for help on using the changeset viewer.