Plugin Directory

Changeset 3254251


Ignore:
Timestamp:
03/11/2025 05:22:51 PM (9 months ago)
Author:
advancedads
Message:

Update to version 2.0.2 from GitHub

Location:
advanced-ads
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • advanced-ads/tags/2.0.2/advanced-ads.php

    r3253826 r3254251  
    1111 * @wordpress-plugin
    1212 * Plugin Name:       Advanced Ads
    13  * Version:           2.0.1
     13 * Version:           2.0.2
    1414 * Description:       Manage and optimize your ads in WordPress
    1515 * Plugin URI:        https://wpadvancedads.com
     
    3838
    3939define( 'ADVADS_FILE', __FILE__ );
    40 define( 'ADVADS_VERSION', '2.0.1' );
     40define( 'ADVADS_VERSION', '2.0.2' );
    4141
    4242// Load the autoloader.
  • advanced-ads/tags/2.0.2/includes/ads/class-ad-repository.php

    r3253289 r3254251  
    325325        $post_meta_values = get_post_meta( $ad->get_id(), self::OPTION_METAKEY, true );
    326326
    327         if ( empty( $post_meta_values ) ) {
     327        if ( empty( $post_meta_values ) || ! is_array( $post_meta_values ) ) {
    328328            $post_meta_values = [];
    329329        }
  • advanced-ads/tags/2.0.2/includes/class-plugin.php

    r3253289 r3254251  
    119119        add_action( 'init', [ $this, 'load_textdomain' ] );
    120120        add_action( 'plugins_loaded', [ $this, 'on_plugins_loaded' ], -1 );
     121        add_action( 'widgets_init', [ $this, 'register_widgets' ] );
    121122
    122123        // Load it all.
     
    126127        $this->modules->initialize();
    127128        $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' );
    128138    }
    129139
  • advanced-ads/tags/2.0.2/includes/placements/class-placement-repository.php

    r3253289 r3254251  
    359359        $type    = get_post_meta( $placement->get_id(), 'type', true );
    360360
     361        if ( empty( $options ) || ! is_array( $options ) ) {
     362            $options = [];
     363        }
     364
    361365        $display_conditions = $options['display'] ?? [];
    362366        $visitor_conditions = $options['visitors'] ?? [];
  • advanced-ads/tags/2.0.2/public/class-advanced-ads.php

    r3253289 r3254251  
    631631
    632632    /**
     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    /**
    633644     * Store whether the loop started in an inner `the_content`.
    634645     *
  • advanced-ads/tags/2.0.2/readme.txt

    r3253826 r3254251  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    357357== Changelog ==
    358358
     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
    359364= 2.0.1 (March 11, 2025) =
    360365
  • advanced-ads/trunk/advanced-ads.php

    r3253826 r3254251  
    1111 * @wordpress-plugin
    1212 * Plugin Name:       Advanced Ads
    13  * Version:           2.0.1
     13 * Version:           2.0.2
    1414 * Description:       Manage and optimize your ads in WordPress
    1515 * Plugin URI:        https://wpadvancedads.com
     
    3838
    3939define( 'ADVADS_FILE', __FILE__ );
    40 define( 'ADVADS_VERSION', '2.0.1' );
     40define( 'ADVADS_VERSION', '2.0.2' );
    4141
    4242// Load the autoloader.
  • advanced-ads/trunk/includes/ads/class-ad-repository.php

    r3253289 r3254251  
    325325        $post_meta_values = get_post_meta( $ad->get_id(), self::OPTION_METAKEY, true );
    326326
    327         if ( empty( $post_meta_values ) ) {
     327        if ( empty( $post_meta_values ) || ! is_array( $post_meta_values ) ) {
    328328            $post_meta_values = [];
    329329        }
  • advanced-ads/trunk/includes/class-plugin.php

    r3253289 r3254251  
    119119        add_action( 'init', [ $this, 'load_textdomain' ] );
    120120        add_action( 'plugins_loaded', [ $this, 'on_plugins_loaded' ], -1 );
     121        add_action( 'widgets_init', [ $this, 'register_widgets' ] );
    121122
    122123        // Load it all.
     
    126127        $this->modules->initialize();
    127128        $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' );
    128138    }
    129139
  • advanced-ads/trunk/includes/placements/class-placement-repository.php

    r3253289 r3254251  
    359359        $type    = get_post_meta( $placement->get_id(), 'type', true );
    360360
     361        if ( empty( $options ) || ! is_array( $options ) ) {
     362            $options = [];
     363        }
     364
    361365        $display_conditions = $options['display'] ?? [];
    362366        $visitor_conditions = $options['visitors'] ?? [];
  • advanced-ads/trunk/public/class-advanced-ads.php

    r3253289 r3254251  
    631631
    632632    /**
     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    /**
    633644     * Store whether the loop started in an inner `the_content`.
    634645     *
  • advanced-ads/trunk/readme.txt

    r3253826 r3254251  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    357357== Changelog ==
    358358
     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
    359364= 2.0.1 (March 11, 2025) =
    360365
Note: See TracChangeset for help on using the changeset viewer.