Changeset 3038672
- Timestamp:
- 02/20/2024 04:43:44 PM (6 months ago)
- Location:
- pinterest-for-woocommerce
- Files:
-
- 30 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
pinterest-for-woocommerce/tags/1.3.22/changelog.txt
r3035850 r3038672 1 1 *** Pinterest for WooCommerce Changelog *** 2 3 4 5 2 6 3 7 = 1.3.21 - 2024-02-14 = -
pinterest-for-woocommerce/tags/1.3.22/class-pinterest-for-woocommerce.php
r2995614 r3038672 305 305 // 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. 306 306 add_action( 'init', array( $this, 'add_onboarding_task' ), 20 ); 307 308 307 } 309 308 … … 543 542 544 543 $settings = self::get_settings( true ); 545 544 // Handle possible false value. 545 if ( ! is_array( $settings ) ) { 546 $settings = array(); 547 } 546 548 $settings[ $key ] = $data; 547 549 … … 597 599 598 600 $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 } 600 605 $settings[ $key ] = $data; 601 606 … … 936 941 * The billing is tied to advertiser. 937 942 */ 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(); 940 946 941 947 Pinterest_For_Woocommerce()::save_setting( 'account_data', $data ); … … 980 986 public static function maybe_check_billing_setup() { 981 987 $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 ) && ; 983 989 if ( Billing::should_check_billing_setup_often() ) { 984 990 $has_billing_setup_new = self::add_billing_setup_info_to_account_data(); … … 1055 1061 */ 1056 1062 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 } 1061 1072 } 1062 1073 -
pinterest-for-woocommerce/tags/1.3.22/i18n/languages/pinterest-for-woocommerce.pot
r3035850 r3038672 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Pinterest for WooCommerce 1.3.2 1\n"5 "Project-Id-Version: Pinterest for WooCommerce 1.3.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pinterest-for-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.1\n" … … 50 50 51 51 #. Translators: The minimum PHP version 52 #: class-pinterest-for-woocommerce.php:36 952 #: class-pinterest-for-woocommerce.php:36 53 53 msgid "Pinterest for WooCommerce requires a minimum PHP version of %s." 54 54 msgstr "" 55 55 56 56 #. Translators: The minimum WP version 57 #: class-pinterest-for-woocommerce.php:37 457 #: class-pinterest-for-woocommerce.php:37 58 58 msgid "Pinterest for WooCommerce requires a minimum WordPress version of %s." 59 59 msgstr "" 60 60 61 61 #. Translators: The minimum WC version 62 #: class-pinterest-for-woocommerce.php:37 962 #: class-pinterest-for-woocommerce.php:37 63 63 msgid "Pinterest for WooCommerce requires a minimum WooCommerce version of %s." 64 64 msgstr "" 65 65 66 #: class-pinterest-for-woocommerce.php:38 766 #: class-pinterest-for-woocommerce.php:38 67 67 msgid "Pinterest for WooCommerce requires WooCommerce Admin to be enabled." 68 68 msgstr "" 69 69 70 70 #. Translators: The minimum Action Scheduler version 71 #: class-pinterest-for-woocommerce.php:39 271 #: class-pinterest-for-woocommerce.php:39 72 72 msgid "Pinterest for WooCommerce requires a minimum Action Scheduler package of %s. It can be caused by old version of the WooCommerce extensions." 73 73 msgstr "" 74 74 75 75 #. Translators: The error description 76 #: class-pinterest-for-woocommerce.php:6 6676 #: class-pinterest-for-woocommerce.php:6 77 77 msgid "Could not decrypt the Pinterest API access token. Try reconnecting to Pinterest. [%s]" 78 78 msgstr "" 79 79 80 #: class-pinterest-for-woocommerce.php:7 1780 #: class-pinterest-for-woocommerce.php:7 81 81 msgid "Response error on disconnect merchant." 82 82 msgstr "" 83 83 84 #: class-pinterest-for-woocommerce.php:73 284 #: class-pinterest-for-woocommerce.php:73 85 85 msgid "There was an error disconnecting the Advertiser." 86 86 msgstr "" 87 87 88 #: class-pinterest-for-woocommerce.php:73 489 #: class-pinterest-for-woocommerce.php:8 1788 #: class-pinterest-for-woocommerce.php:73 89 #: class-pinterest-for-woocommerce.php:8 90 90 msgid "There was an error disconnecting the Advertiser. Please try again." 91 91 msgstr "" 92 92 93 #: class-pinterest-for-woocommerce.php:7 4693 #: class-pinterest-for-woocommerce.php:7 94 94 msgid "Trying to disconnect while the merchant (id) was not found." 95 95 msgstr "" 96 96 97 #: class-pinterest-for-woocommerce.php:95 197 #: class-pinterest-for-woocommerce.php:95 98 98 msgid "There was an error getting the account data." 99 99 msgstr "" 100 100 101 #: class-pinterest-for-woocommerce.php:12 17101 #: class-pinterest-for-woocommerce.php:12 102 102 msgid "Pinterest for WooCommerce verification page" 103 103 msgstr "" … … 152 152 #: src/AdCredits.php:98 153 153 #: src/AdCredits.php:237 154 #: src/Billing.php:13 4154 #: src/Billing.php:13 155 155 msgid "Advertiser connected but the connection id is missing." 156 156 msgstr "" -
pinterest-for-woocommerce/tags/1.3.22/pinterest-for-woocommerce.php
r3035850 r3038672 14 14 * Plugin URI: https://woo.com/products/pinterest-for-woocommerce/ 15 15 * 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.2 116 * Version: 1.3.2 17 17 * Author: WooCommerce 18 18 * Author URI: https://woo.com … … 47 47 48 48 define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ ); 49 define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.2 1' ); // WRCS: DEFINED_VERSION.49 define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.2' ); // WRCS: DEFINED_VERSION. 50 50 51 51 // HPOS compatibility declaration. -
pinterest-for-woocommerce/tags/1.3.22/readme.txt
r3035850 r3038672 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.3 7 Stable tag: 1.3.2 17 Stable tag: 1.3.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 91 91 92 92 == Changelog == 93 94 95 96 93 97 94 98 = 1.3.21 - 2024-02-14 = -
pinterest-for-woocommerce/tags/1.3.22/src/API/Base.php
r3020846 r3038672 395 395 396 396 $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 ); 398 398 399 399 return self::make_request( $request_url, 'POST' ); -
pinterest-for-woocommerce/tags/1.3.22/src/Admin/Tasks/Onboarding.php
r2918824 r3038672 84 84 */ 85 85 public function get_parent_id() { 86 if ( is_callable( 'parent::get_parent_id' ) ) {86 if ( is_callable( ::get_parent_id' ) ) { 87 87 return parent::get_parent_id(); 88 88 } -
pinterest-for-woocommerce/tags/1.3.22/src/Billing.php
r2918824 r3038672 58 58 */ 59 59 $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 ); 61 62 $should_check_often = false !== get_transient( self::CHECK_BILLING_SETUP_OFTEN ); 62 63 if ( $has_billing_setup && $should_check_often ) { -
pinterest-for-woocommerce/tags/1.3.22/src/ProductsXmlFeed.php
r2965797 r3038672 285 285 $id = $product->get_parent_id() ? $product->get_parent_id() : $product->get_id(); 286 286 $taxonomies = array_map( 287 'self::sanitize',287 ::sanitize', 288 288 self::get_taxonomies( $id ) 289 289 ); -
pinterest-for-woocommerce/tags/1.3.22/vendor/autoload.php
r3035850 r3038672 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit a2a637650f56ce754ce32edfb45047d1::getLoader();25 return ComposerAutoloaderInit::getLoader(); -
pinterest-for-woocommerce/tags/1.3.22/vendor/autoload_packages.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/composer/autoload_real.php
r3035850 r3038672 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a2a637650f56ce754ce32edfb45047d15 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit a2a637650f56ce754ce32edfb45047d1', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit a2a637650f56ce754ce32edfb45047d1', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit a2a637650f56ce754ce32edfb45047d1::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
pinterest-for-woocommerce/tags/1.3.22/vendor/composer/autoload_static.php
r3035850 r3038672 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a2a637650f56ce754ce32edfb45047d17 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 47 47 { 48 48 return \Closure::bind(function () use ($loader) { 49 $loader->prefixLengthsPsr4 = ComposerStaticInit a2a637650f56ce754ce32edfb45047d1::$prefixLengthsPsr4;50 $loader->prefixDirsPsr4 = ComposerStaticInit a2a637650f56ce754ce32edfb45047d1::$prefixDirsPsr4;51 $loader->classMap = ComposerStaticInit a2a637650f56ce754ce32edfb45047d1::$classMap;49 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 50 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 51 $loader->classMap = ComposerStaticInit::$classMap; 52 52 53 53 }, null, ClassLoader::class); -
pinterest-for-woocommerce/tags/1.3.22/vendor/composer/installed.php
r3035850 r3038672 2 2 'root' => array( 3 3 'name' => 'woocommerce/pinterest-for-woocommerce', 4 'pretty_version' => 'dev-release/1.3.2 1',5 'version' => 'dev-release/1.3.2 1',6 'reference' => ' 8f1934b7464a11fb8b950142ca86fd26ca84ca2b',4 'pretty_version' => 'dev-release/1.3.2', 5 'version' => 'dev-release/1.3.2', 6 'reference' => '', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 48 48 ), 49 49 'woocommerce/pinterest-for-woocommerce' => array( 50 'pretty_version' => 'dev-release/1.3.2 1',51 'version' => 'dev-release/1.3.2 1',52 'reference' => ' 8f1934b7464a11fb8b950142ca86fd26ca84ca2b',50 'pretty_version' => 'dev-release/1.3.2', 51 'version' => 'dev-release/1.3.2', 52 'reference' => '', 53 53 'type' => 'wordpress-plugin', 54 54 'install_path' => __DIR__ . '/../../', -
pinterest-for-woocommerce/tags/1.3.22/vendor/composer/jetpack_autoload_psr4.php
r3035850 r3038672 12 12 ), 13 13 'Automattic\\WooCommerce\\Pinterest\\' => array( 14 'version' => 'dev-release/1.3.2 1',14 'version' => 'dev-release/1.3.2', 15 15 'path' => array( $baseDir . '/src' ) 16 16 ), -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader-handler.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader-locator.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-autoloader.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-container.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-hook-manager.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-latest-autoloader-guard.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-manifest-reader.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-path-processor.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-php-autoloader.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-plugin-locator.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-plugins-handler.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-shutdown-handler.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-version-loader.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.22/vendor/jetpack-autoloader/class-version-selector.php
r3035850 r3038672 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp a2a637650f56ce754ce32edfb45047d1\al2_12_0;8 namespace Automattic\Jetpack\Autoloader\jp\al2_12_0; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/trunk/readme.txt
r3035850 r3038672 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.3 7 Stable tag: 1.3.2 17 Stable tag: 1.3.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.