Plugin Directory

Changeset 3038672

Timestamp:
02/20/2024 04:43:44 PM (6 months ago)
Author:
ecgan
Message:

Tagging version 1.3.22

Location:
pinterest-for-woocommerce
Files:
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pinterest-for-woocommerce/tags/1.3.22/changelog.txt

    r3035850 r3038672  
    11*** Pinterest for WooCommerce Changelog ***
     2
     3
     4
     5
    26
    37= 1.3.21 - 2024-02-14 =
  • pinterest-for-woocommerce/tags/1.3.22/class-pinterest-for-woocommerce.php

    r2995614 r3038672  
    305305            // Hook the setup task. The hook admin_init is not triggered when the WC fetches the tasks using the endpoint: wp-json/wc-admin/onboarding/tasks and hence hooking into init.
    306306            add_action( 'init', array( $this, 'add_onboarding_task' ), 20 );
    307 
    308307        }
    309308
     
    543542
    544543            $settings = self::get_settings( true );
    545 
     544            // Handle possible false value.
     545            if ( ! is_array( $settings ) ) {
     546                $settings = array();
     547            }
    546548            $settings[ $key ] = $data;
    547549
     
    597599
    598600            $settings = self::get_settings( true, PINTEREST_FOR_WOOCOMMERCE_DATA_NAME );
    599 
     601            // Handle possible false value.
     602            if ( ! is_array( $settings ) ) {
     603                $settings = array();
     604            }
    600605            $settings[ $key ] = $data;
    601606
     
    936941                     * The billing is tied to advertiser.
    937942                     */
    938                     $data['is_billing_setup']   = false;
    939                     $data['coupon_redeem_info'] = array( 'redeem_status' => false );
     943                    $data['is_billing_setup']     = false;
     944                    $data['coupon_redeem_info']   = array( 'redeem_status' => false );
     945                    $data['currency_credit_info'] = AdsCreditCurrency::get_currency_credits();
    940946
    941947                    Pinterest_For_Woocommerce()::save_setting( 'account_data', $data );
     
    980986        public static function maybe_check_billing_setup() {
    981987            $account_data          = Pinterest_For_Woocommerce()::get_setting( 'account_data' );
    982             $has_billing_setup_old = is_array( $account_data ) && $account_data['is_billing_setup'] ?? false;
     988            $has_billing_setup_old = is_array( $account_data ) && ;
    983989            if ( Billing::should_check_billing_setup_often() ) {
    984990                $has_billing_setup_new = self::add_billing_setup_info_to_account_data();
     
    10551061         */
    10561062        public static function add_currency_credits_info_to_account_data() {
    1057             $account_data                         = self::get_setting( 'account_data' );
    1058             $currency_credit_info                 = AdsCreditCurrency::get_currency_credits();
    1059             $account_data['currency_credit_info'] = $currency_credit_info;
    1060             self::save_setting( 'account_data', $account_data );
     1063            $account_data = self::get_setting( 'account_data' );
     1064            if ( ! isset( $account_data['currency_credit_info'] ) ) {
     1065                // Handle possible false value.
     1066                if ( ! is_array( $account_data ) ) {
     1067                    $account_data = array();
     1068                }
     1069                $account_data['currency_credit_info'] = AdsCreditCurrency::get_currency_credits();
     1070                self::save_setting( 'account_data', $account_data );
     1071            }
    10611072        }
    10621073
  • pinterest-for-woocommerce/tags/1.3.22/i18n/languages/pinterest-for-woocommerce.pot

    r3035850 r3038672  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Pinterest for WooCommerce 1.3.21\n"
     5"Project-Id-Version: Pinterest for WooCommerce 1.3.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pinterest-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-02-14T17:38:23+00:00\n"
     12"POT-Creation-Date: 2024-02-+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
     
    5050
    5151#. Translators: The minimum PHP version
    52 #: class-pinterest-for-woocommerce.php:369
     52#: class-pinterest-for-woocommerce.php:36
    5353msgid "Pinterest for WooCommerce requires a minimum PHP version of %s."
    5454msgstr ""
    5555
    5656#. Translators: The minimum WP version
    57 #: class-pinterest-for-woocommerce.php:374
     57#: class-pinterest-for-woocommerce.php:37
    5858msgid "Pinterest for WooCommerce requires a minimum WordPress version of %s."
    5959msgstr ""
    6060
    6161#. Translators: The minimum WC version
    62 #: class-pinterest-for-woocommerce.php:379
     62#: class-pinterest-for-woocommerce.php:37
    6363msgid "Pinterest for WooCommerce requires a minimum WooCommerce version of %s."
    6464msgstr ""
    6565
    66 #: class-pinterest-for-woocommerce.php:387
     66#: class-pinterest-for-woocommerce.php:38
    6767msgid "Pinterest for WooCommerce requires WooCommerce Admin to be enabled."
    6868msgstr ""
    6969
    7070#. Translators: The minimum Action Scheduler version
    71 #: class-pinterest-for-woocommerce.php:392
     71#: class-pinterest-for-woocommerce.php:39
    7272msgid "Pinterest for WooCommerce requires a minimum Action Scheduler package of %s. It can be caused by old version of the WooCommerce extensions."
    7373msgstr ""
    7474
    7575#. Translators: The error description
    76 #: class-pinterest-for-woocommerce.php:666
     76#: class-pinterest-for-woocommerce.php:6
    7777msgid "Could not decrypt the Pinterest API access token. Try reconnecting to Pinterest. [%s]"
    7878msgstr ""
    7979
    80 #: class-pinterest-for-woocommerce.php:717
     80#: class-pinterest-for-woocommerce.php:7
    8181msgid "Response error on disconnect merchant."
    8282msgstr ""
    8383
    84 #: class-pinterest-for-woocommerce.php:732
     84#: class-pinterest-for-woocommerce.php:73
    8585msgid "There was an error disconnecting the Advertiser."
    8686msgstr ""
    8787
    88 #: class-pinterest-for-woocommerce.php:734
    89 #: class-pinterest-for-woocommerce.php:817
     88#: class-pinterest-for-woocommerce.php:73
     89#: class-pinterest-for-woocommerce.php:8
    9090msgid "There was an error disconnecting the Advertiser. Please try again."
    9191msgstr ""
    9292
    93 #: class-pinterest-for-woocommerce.php:746
     93#: class-pinterest-for-woocommerce.php:7
    9494msgid "Trying to disconnect while the merchant (id) was not found."
    9595msgstr ""
    9696
    97 #: class-pinterest-for-woocommerce.php:951
     97#: class-pinterest-for-woocommerce.php:95
    9898msgid "There was an error getting the account data."
    9999msgstr ""
    100100
    101 #: class-pinterest-for-woocommerce.php:1217
     101#: class-pinterest-for-woocommerce.php:12
    102102msgid "Pinterest for WooCommerce verification page"
    103103msgstr ""
     
    152152#: src/AdCredits.php:98
    153153#: src/AdCredits.php:237
    154 #: src/Billing.php:134
     154#: src/Billing.php:13
    155155msgid "Advertiser connected but the connection id is missing."
    156156msgstr ""
  • pinterest-for-woocommerce/tags/1.3.22/pinterest-for-woocommerce.php

    r3035850 r3038672  
    1414 * Plugin URI:        https://woo.com/products/pinterest-for-woocommerce/
    1515 * Description:       Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest.
    16  * Version:           1.3.21
     16 * Version:           1.3.2
    1717 * Author:            WooCommerce
    1818 * Author URI:        https://woo.com
     
    4747
    4848define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ );
    49 define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.21' ); // WRCS: DEFINED_VERSION.
     49define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.2' ); // WRCS: DEFINED_VERSION.
    5050
    5151// HPOS compatibility declaration.
  • pinterest-for-woocommerce/tags/1.3.22/readme.txt

    r3035850 r3038672  
    55Tested up to: 6.4
    66Requires PHP: 7.3
    7 Stable tag: 1.3.21
     7Stable tag: 1.3.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9191
    9292== Changelog ==
     93
     94
     95
     96
    9397
    9498= 1.3.21 - 2024-02-14 =
  • pinterest-for-woocommerce/tags/1.3.22/src/API/Base.php

    r3020846 r3038672  
    395395
    396396        $parsed_website = wp_parse_url( get_home_url() );
    397         $request_url    = add_query_arg( 'website', $parsed_website['host'] . $parsed_website['path'], $request_url );
     397        $request_url    = add_query_arg( 'website', $parsed_website['host'] . , $request_url );
    398398
    399399        return self::make_request( $request_url, 'POST' );
  • pinterest-for-woocommerce/tags/1.3.22/src/Admin/Tasks/Onboarding.php

    r2918824 r3038672  
    8484     */
    8585    public function get_parent_id() {
    86         if ( is_callable( 'parent::get_parent_id' ) ) {
     86        if ( is_callable( ::get_parent_id' ) ) {
    8787            return parent::get_parent_id();
    8888        }
  • pinterest-for-woocommerce/tags/1.3.22/src/Billing.php

    r2918824 r3038672  
    5858         */
    5959        $account_data       = Pinterest_For_Woocommerce()::get_setting( 'account_data' );
    60         $has_billing_setup  = is_array( $account_data ) && $account_data['is_billing_setup'] ?? false;
     60
     61        $has_billing_setup  = is_array( $account_data ) && ( $account_data['is_billing_setup'] ?? false );
    6162        $should_check_often = false !== get_transient( self::CHECK_BILLING_SETUP_OFTEN );
    6263        if ( $has_billing_setup && $should_check_often ) {
  • pinterest-for-woocommerce/tags/1.3.22/src/ProductsXmlFeed.php

    r2965797 r3038672  
    285285        $id         = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id();
    286286        $taxonomies = array_map(
    287             'self::sanitize',
     287            ::sanitize',
    288288            self::get_taxonomies( $id )
    289289        );
  • pinterest-for-woocommerce/tags/1.3.22/vendor/autoload.php

    r3035850 r3038672  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInita2a637650f56ce754ce32edfb45047d1::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • pinterest-for-woocommerce/tags/1.3.22/vendor/autoload_packages.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/composer/autoload_real.php

    r3035850 r3038672  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita2a637650f56ce754ce32edfb45047d1
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInita2a637650f56ce754ce32edfb45047d1', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInita2a637650f56ce754ce32edfb45047d1', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInita2a637650f56ce754ce32edfb45047d1::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • pinterest-for-woocommerce/tags/1.3.22/vendor/composer/autoload_static.php

    r3035850 r3038672  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInita2a637650f56ce754ce32edfb45047d1
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    4747    {
    4848        return \Closure::bind(function () use ($loader) {
    49             $loader->prefixLengthsPsr4 = ComposerStaticInita2a637650f56ce754ce32edfb45047d1::$prefixLengthsPsr4;
    50             $loader->prefixDirsPsr4 = ComposerStaticInita2a637650f56ce754ce32edfb45047d1::$prefixDirsPsr4;
    51             $loader->classMap = ComposerStaticInita2a637650f56ce754ce32edfb45047d1::$classMap;
     49            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     50            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     51            $loader->classMap = ComposerStaticInit::$classMap;
    5252
    5353        }, null, ClassLoader::class);
  • pinterest-for-woocommerce/tags/1.3.22/vendor/composer/installed.php

    r3035850 r3038672  
    22    'root' => array(
    33        'name' => 'woocommerce/pinterest-for-woocommerce',
    4         'pretty_version' => 'dev-release/1.3.21',
    5         'version' => 'dev-release/1.3.21',
    6         'reference' => '8f1934b7464a11fb8b950142ca86fd26ca84ca2b',
     4        'pretty_version' => 'dev-release/1.3.2',
     5        'version' => 'dev-release/1.3.2',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    4848        ),
    4949        'woocommerce/pinterest-for-woocommerce' => array(
    50             'pretty_version' => 'dev-release/1.3.21',
    51             'version' => 'dev-release/1.3.21',
    52             'reference' => '8f1934b7464a11fb8b950142ca86fd26ca84ca2b',
     50            'pretty_version' => 'dev-release/1.3.2',
     51            'version' => 'dev-release/1.3.2',
     52            'reference' => '',
    5353            'type' => 'wordpress-plugin',
    5454            'install_path' => __DIR__ . '/../../',
  • pinterest-for-woocommerce/tags/1.3.22/vendor/composer/jetpack_autoload_psr4.php

    r3035850 r3038672  
    1212    ),
    1313    'Automattic\\WooCommerce\\Pinterest\\' => array(
    14         'version' => 'dev-release/1.3.21',
     14        'version' => 'dev-release/1.3.2',
    1515        'path'    => array( $baseDir . '/src' )
    1616    ),
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-container.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-hook-manager.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-manifest-reader.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-path-processor.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-php-autoloader.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-plugin-locator.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-plugins-handler.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-version-loader.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-version-selector.php

    r3035850 r3038672  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpa2a637650f56ce754ce32edfb45047d1\al2_12_0;
     8namespace Automattic\Jetpack\Autoloader\jp\al2_12_0;
    99
    1010 // phpcs:ignore
  • pinterest-for-woocommerce/trunk/readme.txt

    r3035850 r3038672  
    55Tested up to: 6.2
    66Requires PHP: 7.3
    7 Stable tag: 1.3.21
     7Stable tag: 1.3.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.