Plugin Directory

Changeset 3110568


Ignore:
Timestamp:
07/01/2024 03:01:46 PM (20 months ago)
Author:
teamgrow
Message:

Update trunk to 1.4.1

Location:
grow-for-wp
Files:
38 added
38 deleted
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • grow-for-wp/tags/1.4.1/grow-for-wp.php

    r3100616 r3110568  
    44 * Plugin URI:          https://grow.me/publishers
    55 * Description:         Integrate your WordPress Site with Grow
    6  * Version:             1.4.0
     6 * Version:             1.4.1
    77 * Requires at least:   5.2
    88 * Requires PHP:        7.4
  • grow-for-wp/tags/1.4.1/inc/Grow/Content.php

    r3100616 r3110568  
    172172        }
    173173
     174        // Only apply workaround for older versions of Create.
     175        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     176            return;
     177        }
     178
    174179        $priority = WordPress::has_action( 'mv_create_card_content', 'Mediavine\\Create\\Creations_Views_Hooks::mv_create_ad_div' );
    175180
     
    210215        }
    211216
     217        // Only apply workaround for older versions of Create.
     218        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     219            return;
     220        }
     221
    212222        // Ensure there are items in the list.
    213223        if ( empty( $args['creation']['list_items_between_ads'] ) ) {
     
    250260        }
    251261
     262        // Only apply workaround for older versions of Create.
     263        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     264            return;
     265        }
     266
    252267        // Ensure there are items in the list.
    253268        if ( empty( $args['creation']['list_items_between_ads'] ) ) {
  • grow-for-wp/tags/1.4.1/inc/Grow/Environment.php

    r3100616 r3110568  
    2121    /** @var bool Whether this installation has Create by Mediavine Running */
    2222    private bool $has_create;
     23
     24    /** @var string The version of Create by Mediavine installed, if any. */
     25    private string $create_version = '';
    2326
    2427    /** @var bool Whether this installation has WP Rocket Running */
     
    5962    public function get_has_create() : bool {
    6063        return $this->has_create;
     64    }
     65
     66    /**
     67     * @return string
     68     */
     69    public function get_create_version() : string {
     70        return $this->create_version;
    6171    }
    6272
     
    133143        $this->has_grow_social = class_exists('\Social_Pug');
    134144        $this->has_mcp         = class_exists('\Mediavine\MCP\MV_Control_Panel');
    135         $this->has_create      = class_exists('\Mediavine\Create\Plugin');
    136145        $this->has_wp_rocket   = defined( 'WP_ROCKET_VERSION' );
    137146        $this->domain          = WordPress::site_domain();
     
    139148        $this->home_url        = WordPress::home_url();
    140149        $this->site_title      = WordPress::site_title();
     150
     151        $this->has_create = class_exists( '\Mediavine\Create\Plugin' );
     152        if ( $this->has_create ) {
     153            $create_db_version = WordPress::get_option( 'mv_create_version' );
     154            if ( ! empty( $create_db_version ) && is_string( $create_db_version ) ) {
     155                $this->create_version = $create_db_version;
     156            }
     157        }
    141158
    142159        $this->root_path = ABSPATH;
  • grow-for-wp/tags/1.4.1/inc/Grow/EnvironmentInterface.php

    r3100616 r3110568  
    2525     */
    2626    public function get_has_create() : bool;
     27
     28    /**
     29     * Returns the current Create by Mediavine version, if any.
     30     *
     31     * @return string
     32     */
     33    public function get_create_version() : string;
    2734
    2835    /**
  • grow-for-wp/tags/1.4.1/inc/Grow/Plugin.php

    r3100616 r3110568  
    1717
    1818    /** @var string|null VERSION */
    19     const VERSION = '1.4.0';
     19    const VERSION = '1.4.1';
    2020
    2121    /** @var Repository */
  • grow-for-wp/tags/1.4.1/readme.txt

    r3100616 r3110568  
    55Tested up to: 6.5.3
    66Requires PHP: 7.4
    7 Stable tag: 1.4.0
     7Stable tag: 1.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105# Changelog
    106106
     107## 1.4.1 - 2024-06-24
     108 - Fix issue with duplicate Journey ad slots with newer versions of Create by Mediavine.
     109
    107110## 1.4.0 - 2024-06-04
    108111 - Add Journey ad slot integrations with Create By Mediavine and Trellis.
  • grow-for-wp/tags/1.4.1/vendor/autoload.php

    r3100616 r3110568  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96::getLoader();
     7return ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a::getLoader();
  • grow-for-wp/tags/1.4.1/vendor/composer/autoload_real.php

    r3100616 r3110568  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96
     5class ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
  • grow-for-wp/tags/1.4.1/vendor/composer/autoload_static.php

    r3100616 r3110568  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96
     7class ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8686    {
    8787        return \Closure::bind(function () use ($loader) {
    88             $loader->prefixLengthsPsr4 = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$prefixLengthsPsr4;
    89             $loader->prefixDirsPsr4 = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$prefixDirsPsr4;
    90             $loader->classMap = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$classMap;
     88            $loader->prefixLengthsPsr4 = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$prefixLengthsPsr4;
     89            $loader->prefixDirsPsr4 = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$prefixDirsPsr4;
     90            $loader->classMap = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$classMap;
    9191
    9292        }, null, ClassLoader::class);
  • grow-for-wp/tags/1.4.1/vendor/composer/installed.php

    r3100616 r3110568  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'b0f4750e68cccdb3df1d535c6b6782a023f94ce1',
     8        'reference' => '0f592776c2c7cc819e03f251861687d6d4202868',
    99        'name' => 'mediavine/grow',
    1010        'dev' => false,
     
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'b0f4750e68cccdb3df1d535c6b6782a023f94ce1',
     19            'reference' => '0f592776c2c7cc819e03f251861687d6d4202868',
    2020            'dev_requirement' => false,
    2121        ),
  • grow-for-wp/trunk/grow-for-wp.php

    r3100616 r3110568  
    44 * Plugin URI:          https://grow.me/publishers
    55 * Description:         Integrate your WordPress Site with Grow
    6  * Version:             1.4.0
     6 * Version:             1.4.1
    77 * Requires at least:   5.2
    88 * Requires PHP:        7.4
  • grow-for-wp/trunk/inc/Grow/Content.php

    r3100616 r3110568  
    172172        }
    173173
     174        // Only apply workaround for older versions of Create.
     175        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     176            return;
     177        }
     178
    174179        $priority = WordPress::has_action( 'mv_create_card_content', 'Mediavine\\Create\\Creations_Views_Hooks::mv_create_ad_div' );
    175180
     
    210215        }
    211216
     217        // Only apply workaround for older versions of Create.
     218        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     219            return;
     220        }
     221
    212222        // Ensure there are items in the list.
    213223        if ( empty( $args['creation']['list_items_between_ads'] ) ) {
     
    250260        }
    251261
     262        // Only apply workaround for older versions of Create.
     263        if ( version_compare( $this->environment->get_create_version(), '1.9.6', '>' ) ) {
     264            return;
     265        }
     266
    252267        // Ensure there are items in the list.
    253268        if ( empty( $args['creation']['list_items_between_ads'] ) ) {
  • grow-for-wp/trunk/inc/Grow/Environment.php

    r3100616 r3110568  
    2121    /** @var bool Whether this installation has Create by Mediavine Running */
    2222    private bool $has_create;
     23
     24    /** @var string The version of Create by Mediavine installed, if any. */
     25    private string $create_version = '';
    2326
    2427    /** @var bool Whether this installation has WP Rocket Running */
     
    5962    public function get_has_create() : bool {
    6063        return $this->has_create;
     64    }
     65
     66    /**
     67     * @return string
     68     */
     69    public function get_create_version() : string {
     70        return $this->create_version;
    6171    }
    6272
     
    133143        $this->has_grow_social = class_exists('\Social_Pug');
    134144        $this->has_mcp         = class_exists('\Mediavine\MCP\MV_Control_Panel');
    135         $this->has_create      = class_exists('\Mediavine\Create\Plugin');
    136145        $this->has_wp_rocket   = defined( 'WP_ROCKET_VERSION' );
    137146        $this->domain          = WordPress::site_domain();
     
    139148        $this->home_url        = WordPress::home_url();
    140149        $this->site_title      = WordPress::site_title();
     150
     151        $this->has_create = class_exists( '\Mediavine\Create\Plugin' );
     152        if ( $this->has_create ) {
     153            $create_db_version = WordPress::get_option( 'mv_create_version' );
     154            if ( ! empty( $create_db_version ) && is_string( $create_db_version ) ) {
     155                $this->create_version = $create_db_version;
     156            }
     157        }
    141158
    142159        $this->root_path = ABSPATH;
  • grow-for-wp/trunk/inc/Grow/EnvironmentInterface.php

    r3100616 r3110568  
    2525     */
    2626    public function get_has_create() : bool;
     27
     28    /**
     29     * Returns the current Create by Mediavine version, if any.
     30     *
     31     * @return string
     32     */
     33    public function get_create_version() : string;
    2734
    2835    /**
  • grow-for-wp/trunk/inc/Grow/Plugin.php

    r3100616 r3110568  
    1717
    1818    /** @var string|null VERSION */
    19     const VERSION = '1.4.0';
     19    const VERSION = '1.4.1';
    2020
    2121    /** @var Repository */
  • grow-for-wp/trunk/readme.txt

    r3100616 r3110568  
    55Tested up to: 6.5.3
    66Requires PHP: 7.4
    7 Stable tag: 1.4.0
     7Stable tag: 1.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105# Changelog
    106106
     107## 1.4.1 - 2024-06-24
     108 - Fix issue with duplicate Journey ad slots with newer versions of Create by Mediavine.
     109
    107110## 1.4.0 - 2024-06-04
    108111 - Add Journey ad slot integrations with Create By Mediavine and Trellis.
  • grow-for-wp/trunk/vendor/autoload.php

    r3100616 r3110568  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96::getLoader();
     7return ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a::getLoader();
  • grow-for-wp/trunk/vendor/composer/autoload_real.php

    r3100616 r3110568  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96
     5class ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit7fe8c7b09b9ec09b303db7a229c37d96', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitf22f6d7f73597ad7b4b1c0d67befee3a', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
  • grow-for-wp/trunk/vendor/composer/autoload_static.php

    r3100616 r3110568  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96
     7class ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8686    {
    8787        return \Closure::bind(function () use ($loader) {
    88             $loader->prefixLengthsPsr4 = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$prefixLengthsPsr4;
    89             $loader->prefixDirsPsr4 = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$prefixDirsPsr4;
    90             $loader->classMap = ComposerStaticInit7fe8c7b09b9ec09b303db7a229c37d96::$classMap;
     88            $loader->prefixLengthsPsr4 = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$prefixLengthsPsr4;
     89            $loader->prefixDirsPsr4 = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$prefixDirsPsr4;
     90            $loader->classMap = ComposerStaticInitf22f6d7f73597ad7b4b1c0d67befee3a::$classMap;
    9191
    9292        }, null, ClassLoader::class);
  • grow-for-wp/trunk/vendor/composer/installed.php

    r3100616 r3110568  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'b0f4750e68cccdb3df1d535c6b6782a023f94ce1',
     8        'reference' => '0f592776c2c7cc819e03f251861687d6d4202868',
    99        'name' => 'mediavine/grow',
    1010        'dev' => false,
     
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'b0f4750e68cccdb3df1d535c6b6782a023f94ce1',
     19            'reference' => '0f592776c2c7cc819e03f251861687d6d4202868',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.