Changeset 2965797
- Timestamp:
- 09/12/2023 10:24:51 AM (3 years ago)
- Location:
- pinterest-for-woocommerce
- Files:
-
- 1 added
- 69 edited
- 1 copied
-
tags/1.3.10 (copied) (copied from pinterest-for-woocommerce/tags/1.3.9)
-
tags/1.3.10/README.md (modified) (1 diff)
-
tags/1.3.10/changelog.txt (modified) (1 diff)
-
tags/1.3.10/class-pinterest-for-woocommerce.php (modified) (7 diffs)
-
tags/1.3.10/i18n/languages/pinterest-for-woocommerce.pot (modified) (15 diffs)
-
tags/1.3.10/pinterest-for-woocommerce.php (modified) (3 diffs)
-
tags/1.3.10/readme.txt (modified) (2 diffs)
-
tags/1.3.10/src/API/Auth.php (modified) (1 diff)
-
tags/1.3.10/src/API/Base.php (modified) (2 diffs)
-
tags/1.3.10/src/API/FeedState.php (modified) (1 diff)
-
tags/1.3.10/src/Admin/Product/Attributes/AttributesForm.php (modified) (3 diffs)
-
tags/1.3.10/src/Admin/Product/Attributes/AttributesTab.php (modified) (2 diffs)
-
tags/1.3.10/src/FeedGenerator.php (modified) (5 diffs)
-
tags/1.3.10/src/Merchants.php (modified) (1 diff)
-
tags/1.3.10/src/PluginUpdate.php (modified) (1 diff)
-
tags/1.3.10/src/Product/Attributes/AttributeManager.php (modified) (3 diffs)
-
tags/1.3.10/src/ProductFeedStatus.php (modified) (1 diff)
-
tags/1.3.10/src/ProductsXmlFeed.php (modified) (3 diffs)
-
tags/1.3.10/src/RichPins.php (modified) (3 diffs)
-
tags/1.3.10/src/View/PHPView.php (modified) (4 diffs)
-
tags/1.3.10/uninstall.php (modified) (1 diff)
-
tags/1.3.10/vendor/autoload.php (modified) (1 diff)
-
tags/1.3.10/vendor/autoload_packages.php (modified) (1 diff)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/CHANGELOG.md (modified) (2 diffs)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/README.md (modified) (1 diff)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/composer.json (modified) (3 diffs)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php (modified) (1 diff)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php (modified) (4 diffs)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadProcessor.php (modified) (1 diff)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php (modified) (3 diffs)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php (modified) (3 diffs)
-
tags/1.3.10/vendor/automattic/jetpack-autoloader/src/class-version-selector.php (modified) (1 diff)
-
tags/1.3.10/vendor/bin/generate-defuse-key (modified) (1 diff)
-
tags/1.3.10/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
tags/1.3.10/vendor/composer/InstalledVersions.php (modified) (11 diffs)
-
tags/1.3.10/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.3.10/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.3.10/vendor/composer/installed.json (modified) (7 diffs)
-
tags/1.3.10/vendor/composer/installed.php (modified) (3 diffs)
-
tags/1.3.10/vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
tags/1.3.10/vendor/composer/jetpack_autoload_psr4.php (modified) (2 diffs)
-
tags/1.3.10/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/1.3.10/vendor/defuse/php-encryption/LICENSE (modified) (1 diff)
-
tags/1.3.10/vendor/defuse/php-encryption/README.md (modified) (2 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/composer.json (modified) (1 diff)
-
tags/1.3.10/vendor/defuse/php-encryption/dist/Makefile (modified) (1 diff)
-
tags/1.3.10/vendor/defuse/php-encryption/dist/box.json (modified) (1 diff)
-
tags/1.3.10/vendor/defuse/php-encryption/dist/phar-testing-autoload.php (added)
-
tags/1.3.10/vendor/defuse/php-encryption/docs/InternalDeveloperDocs.md (modified) (2 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/Core.php (modified) (4 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/Crypto.php (modified) (6 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/Encoding.php (modified) (2 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/File.php (modified) (9 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/Key.php (modified) (2 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/KeyOrPassword.php (modified) (2 diffs)
-
tags/1.3.10/vendor/defuse/php-encryption/src/KeyProtectedByPassword.php (modified) (4 diffs)
-
tags/1.3.10/vendor/jetpack-autoloader/class-autoloader-handler.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-autoloader-locator.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-autoloader.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-container.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-hook-manager.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-latest-autoloader-guard.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-manifest-reader.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-path-processor.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-php-autoloader.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-plugin-locator.php (modified) (4 diffs)
-
tags/1.3.10/vendor/jetpack-autoloader/class-plugins-handler.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-shutdown-handler.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-version-loader.php (modified) (1 diff)
-
tags/1.3.10/vendor/jetpack-autoloader/class-version-selector.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pinterest-for-woocommerce/tags/1.3.10/README.md
r2918824 r2965797 124 124 The tests will execute and you'll be presented with a summary. 125 125 126 ### Unit Tests and PHP 8127 128 We currently do not support running unit tests on PHP 8..129 130 126 <p align="center"> 131 127 <br/><br/> -
pinterest-for-woocommerce/tags/1.3.10/changelog.txt
r2963167 r2965797 1 1 *** Pinterest for WooCommerce Changelog *** 2 3 = 1.3.10 - 2023-09-12 = 4 * Dev - Updates PHPUnit version, unit tests, and matrix in git workflow for PHP8.2 compatibility. 2 5 3 6 = 1.3.9 - 2023-09-05 = -
pinterest-for-woocommerce/tags/1.3.10/class-pinterest-for-woocommerce.php
r2963167 r2965797 63 63 */ 64 64 const PLUGIN_REQUIREMENTS = array( 65 'php_version' => '7. 3',65 'php_version' => '7.4', 66 66 'wp_version' => '5.6', 67 67 'wc_version' => '5.3', … … 179 179 add_action( 'plugins_loaded', array( $this, 'init_plugin' ) ); 180 180 181 /** 182 * Plugin loaded action. 183 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 184 */ 181 185 do_action( 'pinterest_for_woocommerce_loaded' ); 182 186 } … … 309 313 */ 310 314 public function init() { 311 // Before init action. 315 /** 316 * Before init action. 317 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 318 */ 312 319 do_action( 'before_pinterest_for_woocommerce_init' ); 313 320 … … 315 322 $this->load_plugin_textdomain(); 316 323 317 // Init action. 324 /** 325 * Init action. 326 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 327 */ 318 328 do_action( 'pinterest_for_woocommerce_init' ); 319 329 } … … 370 380 } 371 381 382 /** 383 * Check if WooCommerce Admin is enabled. 384 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 385 */ 372 386 if ( apply_filters( 'woocommerce_admin_disabled', false ) ) { 373 387 $errors[] = esc_html__( 'Pinterest for WooCommerce requires WooCommerce Admin to be enabled.', 'pinterest-for-woocommerce' ); … … 425 439 */ 426 440 private function load_plugin_textdomain() { 441 /** 442 * Get plugin locale. 443 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 444 */ 427 445 $locale = apply_filters( 'plugin_locale', get_locale(), 'pinterest-for-woocommerce' ); 428 446 … … 455 473 */ 456 474 public function template_path() { 475 /** 476 * Returns template path. 477 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 478 */ 457 479 return apply_filters( 'pinterest_for_woocommerce_template_path', 'pinterest-for-woocommerce/' ); 458 480 } -
pinterest-for-woocommerce/tags/1.3.10/i18n/languages/pinterest-for-woocommerce.pot
r2963167 r2965797 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Pinterest for WooCommerce 1.3. 9\n"5 "Project-Id-Version: Pinterest for WooCommerce 1.3.10\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: 2023-09- 05T14:54:14+00:00\n"12 "POT-Creation-Date: 2023-09-12T10:23:15+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 6.0\n"14 "X-Generator: WP-CLI 2.8.1\n" 15 15 "X-Domain: pinterest-for-woocommerce\n" 16 16 … … 50 50 51 51 #. Translators: The minimum PHP version 52 #: class-pinterest-for-woocommerce.php:3 5952 #: class-pinterest-for-woocommerce.php:369 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:3 6457 #: class-pinterest-for-woocommerce.php:374 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:3 6962 #: class-pinterest-for-woocommerce.php:379 63 63 msgid "Pinterest for WooCommerce requires a minimum WooCommerce version of %s." 64 64 msgstr "" 65 65 66 #: class-pinterest-for-woocommerce.php:3 7366 #: class-pinterest-for-woocommerce.php:387 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:3 7871 #: class-pinterest-for-woocommerce.php:392 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 4476 #: class-pinterest-for-woocommerce.php:666 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: 69580 #: class-pinterest-for-woocommerce.php:717 81 81 msgid "Response error on disconnect merchant." 82 82 msgstr "" 83 83 84 #: class-pinterest-for-woocommerce.php:7 1084 #: class-pinterest-for-woocommerce.php:732 85 85 msgid "There was an error disconnecting the Advertiser." 86 86 msgstr "" 87 87 88 #: class-pinterest-for-woocommerce.php:7 1289 #: class-pinterest-for-woocommerce.php: 79588 #: class-pinterest-for-woocommerce.php:734 89 #: class-pinterest-for-woocommerce.php:817 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 2493 #: class-pinterest-for-woocommerce.php:746 94 94 msgid "Trying to disconnect while the merchant (id) was not found." 95 95 msgstr "" 96 96 97 #: class-pinterest-for-woocommerce.php:9 2997 #: class-pinterest-for-woocommerce.php:951 98 98 msgid "There was an error getting the account data." 99 99 msgstr "" 100 100 101 #: class-pinterest-for-woocommerce.php:1 191101 #: class-pinterest-for-woocommerce.php:1213 102 102 msgid "Pinterest for WooCommerce verification page" 103 103 msgstr "" … … 165 165 msgstr "" 166 166 167 #: src/Admin/Product/Attributes/AttributesForm.php:1 28167 #: src/Admin/Product/Attributes/AttributesForm.php:133 168 168 msgid "Default" 169 169 msgstr "" 170 170 171 #: src/Admin/Product/Attributes/AttributesTab.php:1 88171 #: src/Admin/Product/Attributes/AttributesTab.php:192 172 172 msgid "Simple product" 173 173 msgstr "" 174 174 175 #: src/Admin/Product/Attributes/AttributesTab.php:1 89175 #: src/Admin/Product/Attributes/AttributesTab.php:193 176 176 msgid "Variable product" 177 177 msgstr "" … … 246 246 msgstr "" 247 247 248 #: src/API/Auth.php:11 3248 #: src/API/Auth.php:116 249 249 msgid "There was an error getting the account data. Please try again later." 250 250 msgstr "" … … 275 275 msgstr "" 276 276 277 #: src/API/Base.php:43 2278 #: src/API/Base.php:53 3279 #: src/Merchants.php:1 39277 #: src/API/Base.php:436 278 #: src/API/Base.php:539 279 #: src/Merchants.php:140 280 280 msgid "Auto-created by Pinterest for WooCommerce" 281 281 msgstr "" … … 304 304 305 305 #: src/API/FeedState.php:95 306 #: src/API/FeedState.php:20 0306 #: src/API/FeedState.php:204 307 307 msgid "XML feed" 308 308 msgstr "" … … 313 313 314 314 #. Translators: The error description as returned from the API 315 #: src/API/FeedState.php:11 5315 #: src/API/FeedState.php:119 316 316 msgid "Error getting feed's state. [%s]" 317 317 msgstr "" 318 318 319 #: src/API/FeedState.php:1 39319 #: src/API/FeedState.php:143 320 320 msgid "Feed generation in progress." 321 321 msgstr "" 322 322 323 323 #. translators: 1: Time string, 2: number of products, 3: opening anchor tag, 4: closing anchor tag 324 #: src/API/FeedState.php:14 3324 #: src/API/FeedState.php:147 325 325 msgid "Last activity: %1$s ago - Wrote %2$s product to %3$sfeed file%4$s." 326 326 msgid_plural "Last activity: %1$s ago - Wrote %2$s products to %3$sfeed file%4$s." … … 328 328 msgstr[1] "" 329 329 330 #: src/API/FeedState.php:1 59330 #: src/API/FeedState.php:163 331 331 msgid "Up to date" 332 332 msgstr "" 333 333 334 334 #. translators: 1: Time string, 2: total number of products, 3: opening anchor tag, 4: closing anchor tag 335 #: src/API/FeedState.php:16 3335 #: src/API/FeedState.php:167 336 336 msgid "Successfully generated %1$s ago - Wrote %2$s product to %3$sfeed file%4$s" 337 337 msgid_plural "Successfully generated %1$s ago - Wrote %2$s products to %3$sfeed file%4$s" … … 339 339 msgstr[1] "" 340 340 341 #: src/API/FeedState.php:1 79341 #: src/API/FeedState.php:183 342 342 msgid "Feed generation will start shortly." 343 343 msgstr "" 344 344 345 #: src/API/FeedState.php:18 4345 #: src/API/FeedState.php:188 346 346 msgid "Feed configuration will start shortly." 347 347 msgstr "" 348 348 349 #: src/API/FeedState.php:1 89350 #: src/API/FeedState.php:23 4349 #: src/API/FeedState.php:193 350 #: src/API/FeedState.php:238 351 351 #: src/Feeds.php:42 352 352 #: src/Feeds.php:84 … … 355 355 356 356 #. Translators: %1$s Time string, %2$s error message 357 #: src/API/FeedState.php:19 2357 #: src/API/FeedState.php:196 358 358 msgid "Last activity: %1$s ago - %2$s" 359 359 msgstr "" 360 360 361 #: src/API/FeedState.php:226 361 #: src/API/FeedState.php:230 362 #: src/API/FeedState.php:274 363 msgid "Product feed not yet configured on Pinterest." 364 msgstr "" 365 366 #: src/API/FeedState.php:234 367 msgid "Could not get merchant info." 368 msgstr "" 369 370 #: src/API/FeedState.php:242 371 msgid "Product feed not active." 372 msgstr "" 373 374 #: src/API/FeedState.php:246 375 msgid "Product feed configured for ingestion on Pinterest" 376 msgstr "" 377 378 #. Translators: %1$s The URL of the product feed, %2$s Time string 379 #: src/API/FeedState.php:255 380 msgid "Pinterest will fetch your <a href=\"%1$s\" target=\"_blank\">product feed</a> every %2$s" 381 msgstr "" 382 383 #: src/API/FeedState.php:266 384 msgid "Product feed pending approval on Pinterest." 385 msgstr "" 386 362 387 #: src/API/FeedState.php:270 363 msgid "Product feed not yet configured on Pinterest."364 msgstr ""365 366 #: src/API/FeedState.php:230367 msgid "Could not get merchant info."368 msgstr ""369 370 #: src/API/FeedState.php:238371 msgid "Product feed not active."372 msgstr ""373 374 #: src/API/FeedState.php:242375 msgid "Product feed configured for ingestion on Pinterest"376 msgstr ""377 378 #. Translators: %1$s The URL of the product feed, %2$s Time string379 #: src/API/FeedState.php:251380 msgid "Pinterest will fetch your <a href=\"%1$s\" target=\"_blank\">product feed</a> every %2$s"381 msgstr ""382 383 #: src/API/FeedState.php:262384 msgid "Product feed pending approval on Pinterest."385 msgstr ""386 387 #: src/API/FeedState.php:266388 388 msgid "Product feed declined by Pinterest" 389 389 msgstr "" 390 390 391 #: src/API/FeedState.php:27 5391 #: src/API/FeedState.php:279 392 392 msgid "Remote feed setup" 393 393 msgstr "" 394 394 395 #: src/API/FeedState.php:3 16395 #: src/API/FeedState.php:320 396 396 msgid "Pinterest tag" 397 397 msgstr "" 398 398 399 #: src/API/FeedState.php:3 18400 #: src/API/FeedState.php:3 49399 #: src/API/FeedState.php:322 400 #: src/API/FeedState.php:353 401 401 msgid "Potential conflicting plugins" 402 402 msgstr "" 403 403 404 #: src/API/FeedState.php:3 47404 #: src/API/FeedState.php:351 405 405 msgid "Pinterest Rich Pins" 406 406 msgstr "" 407 407 408 #: src/API/FeedState.php:37 1408 #: src/API/FeedState.php:375 409 409 msgid "Feed is not registered with Pinterest." 410 410 msgstr "" 411 411 412 #: src/API/FeedState.php:38 0412 #: src/API/FeedState.php:384 413 413 msgid "Response error. Feed report contains no feed workflow." 414 414 msgstr "" 415 415 416 #: src/API/FeedState.php:3 87416 #: src/API/FeedState.php:391 417 417 msgid "Automatically pulled by Pinterest" 418 418 msgstr "" 419 419 420 420 #. Translators: %1$s Time string, %2$s number of products 421 #: src/API/FeedState.php:39 0422 #: src/API/FeedState.php:40 0421 #: src/API/FeedState.php:394 422 #: src/API/FeedState.php:404 423 423 msgid "Last pulled: %1$s ago, containing %2$d products" 424 424 msgstr "" 425 425 426 #: src/API/FeedState.php: 397426 #: src/API/FeedState.php:401 427 427 msgid "Processing" 428 428 msgstr "" 429 429 430 #: src/API/FeedState.php:4 07430 #: src/API/FeedState.php:411 431 431 msgid "Feed is under review." 432 432 msgstr "" 433 433 434 #: src/API/FeedState.php:41 1434 #: src/API/FeedState.php:415 435 435 msgid "The feed is queued for processing." 436 436 msgstr "" 437 437 438 #: src/API/FeedState.php:41 5438 #: src/API/FeedState.php:419 439 439 msgid "Feed ingestion failed." 440 440 msgstr "" 441 441 442 442 #. Translators: %1$s Time difference string 443 #: src/API/FeedState.php:4 18443 #: src/API/FeedState.php:422 444 444 msgid "Last attempt: %1$s ago" 445 445 msgstr "" 446 446 447 #: src/API/FeedState.php:4 29447 #: src/API/FeedState.php:433 448 448 msgid "Unknown status in workflow." 449 449 msgstr "" 450 450 451 451 #. Translators: The status text returned by the API. 452 #: src/API/FeedState.php:43 2452 #: src/API/FeedState.php:436 453 453 msgid "API returned an unknown status: %1$s" 454 454 msgstr "" 455 455 456 #: src/API/FeedState.php:4 56456 #: src/API/FeedState.php:460 457 457 msgid "Remote sync status" 458 458 msgstr "" … … 594 594 595 595 #: src/Merchants.php:84 596 #: src/Merchants.php:17 2596 #: src/Merchants.php:173 597 597 msgid "Response error when trying to create a merchant or update the existing one." 598 598 msgstr "" … … 606 606 msgstr "" 607 607 608 #: src/Merchants.php:15 5608 #: src/Merchants.php:156 609 609 msgid "There was a previous error trying to create or update merchant." 610 610 msgstr "" … … 689 689 690 690 #. translators: %s product id 691 #: src/ProductsXmlFeed.php:26 7691 #: src/ProductsXmlFeed.php:268 692 692 msgid "The product [%s] has a description longer than the allowed limit." 693 693 msgstr "" … … 709 709 710 710 #. Translators: 1: Conflicting plugins, 2: Plugins Admin page opening tag, 3: Pinterest settings opening tag, 4: Closing anchor tag 711 #: src/RichPins.php:29 3711 #: src/RichPins.php:299 712 712 msgid "The following installed plugin(s) can potentially cause problems with Rich Pins: %1$s. %2$sRemove conflicting plugins%4$s or %3$smanage Rich Pins settings%4$s." 713 713 msgstr "" -
pinterest-for-woocommerce/tags/1.3.10/pinterest-for-woocommerce.php
r2963167 r2965797 14 14 * Plugin URI: https://woocommerce.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. 916 * Version: 1.3.10 17 17 * Author: WooCommerce 18 18 * Author URI: https://woocommerce.com … … 24 24 * Requires at least: 5.6 25 25 * Tested up to: 6.3 26 * Requires PHP: 7. 326 * Requires PHP: 7.4 27 27 * 28 28 * WC requires at least: 5.3 … … 47 47 48 48 define( 'PINTEREST_FOR_WOOCOMMERCE_PLUGIN_FILE', __FILE__ ); 49 define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3. 9' ); // WRCS: DEFINED_VERSION.49 define( 'PINTEREST_FOR_WOOCOMMERCE_VERSION', '1.3.10' ); // WRCS: DEFINED_VERSION. 50 50 51 51 // HPOS compatibility declaration. -
pinterest-for-woocommerce/tags/1.3.10/readme.txt
r2963167 r2965797 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.3 7 Stable tag: 1.3. 97 Stable tag: 1.3.10 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 91 91 92 92 == Changelog == 93 94 = 1.3.10 - 2023-09-12 = 95 * Dev - Updates PHPUnit version, unit tests, and matrix in git workflow for PHP8.2 compatibility. 93 96 94 97 = 1.3.9 - 2023-09-05 = -
pinterest-for-woocommerce/tags/1.3.10/src/API/Auth.php
r2918824 r2965797 108 108 109 109 try { 110 // Actions to perform after getting the authorization token. 110 /** 111 * Actions to perform after getting the authorization token. 112 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 113 */ 111 114 do_action( 'pinterest_for_woocommerce_token_saved' ); 112 115 } catch ( Throwable $th ) { -
pinterest-for-woocommerce/tags/1.3.10/src/API/Base.php
r2954023 r2965797 430 430 public static function create_advertiser( $tos_id ) { 431 431 432 /** 433 * Advertiser name. 434 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 435 */ 432 436 $advertiser_name = apply_filters( 'pinterest_for_woocommerce_default_advertiser_name', esc_html__( 'Auto-created by Pinterest for WooCommerce', 'pinterest-for-woocommerce' ) ); 433 437 … … 530 534 */ 531 535 public static function create_tag( $advertiser_id ) { 532 536 /** 537 * Tag name. 538 */ 533 539 $tag_name = apply_filters( 'pinterest_for_woocommerce_default_tag_name', esc_html__( 'Auto-created by Pinterest for WooCommerce', 'pinterest-for-woocommerce' ) ); 534 540 -
pinterest-for-woocommerce/tags/1.3.10/src/API/FeedState.php
r2918824 r2965797 108 108 } 109 109 110 /** 111 * Returns feed state. 112 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 113 */ 110 114 return apply_filters( 'pinterest_for_woocommerce_feed_state', array() ); 111 115 -
pinterest-for-woocommerce/tags/1.3.10/src/Admin/Product/Attributes/AttributesForm.php
r2918824 r2965797 72 72 * 73 73 * @see AttributeManager::map_attribute_types 74 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 74 75 */ 75 76 $applicable_types = apply_filters( "wc_pinterest_attribute_applicable_product_types_{$attribute_id}", $applicable_types, $attribute_type ); … … 77 78 /** 78 79 * Filters the list of product types to hide the attribute for. 80 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 79 81 */ 80 82 $hidden_types = apply_filters( "wc_pinterest_attribute_hidden_product_types_{$attribute_id}", array() ); … … 114 116 $value_options = $attribute::get_value_options(); 115 117 } 118 /** 119 * Filters the list of value options for the given attribute. 120 */ 116 121 $value_options = apply_filters( "wc_pinterest_product_attribute_value_options_{$attribute::get_id()}", $value_options ); 117 122 -
pinterest-for-woocommerce/tags/1.3.10/src/Admin/Product/Attributes/AttributesTab.php
r2918824 r2965797 183 183 */ 184 184 public static function get_applicable_product_types(): array { 185 /** 186 * Array of product types that the Pinterest tab can be displayed for. 187 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 188 */ 185 189 return apply_filters( 186 190 'wc_pinterest_attributes_tab_applicable_product_types', … … 200 204 */ 201 205 protected function get_hidden_product_types(): array { 206 /** 207 * Array of product types that the Pinterest tab cannot be displayed for. 208 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 209 */ 202 210 return apply_filters( 203 211 'wc_pinterest_attributes_tab_hidden_product_types', -
pinterest-for-woocommerce/tags/1.3.10/src/FeedGenerator.php
r2931962 r2965797 580 580 */ 581 581 protected function get_batch_size(): int { 582 /** 583 * Returns products to process per batch. 584 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 585 */ 582 586 return Pinterest_For_Woocommerce::get_data( 'feed_product_batch_size' ) ?? apply_filters( 583 587 PINTEREST_FOR_WOOCOMMERCE_OPTION_NAME . '_feed_product_batch_size', … … 633 637 */ 634 638 private function get_included_product_types(): array { 639 /** 640 * Returns array of included product types. 641 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 642 */ 635 643 return (array) apply_filters( 636 644 'pinterest_for_woocommerce_included_product_types', … … 650 658 */ 651 659 private function get_excluded_product_types(): array { 660 /** 661 * Returns array of excluded product types. 662 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 663 */ 652 664 return (array) apply_filters( 653 665 'pinterest_for_woocommerce_excluded_product_types', … … 669 681 */ 670 682 private function get_excluded_products_by_parent(): array { 683 /** 684 * Returns array of excluded products by parent. 685 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 686 */ 671 687 return (array) apply_filters( 672 688 'pinterest_for_woocommerce_excluded_products_by_parent', … … 741 757 */ 742 758 protected function is_failure_rate_above_threshold( string $hook, ?array $args = null ): bool { 759 /** 760 * Threshold of failed actions. 761 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 762 */ 743 763 $threshold = apply_filters( 'pinterest_for_woocommerce_action_failure_threshold', 3 ); 764 /** 765 * Time period of failed actions. 766 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 767 */ 744 768 $time_period = apply_filters( 'pinterest_for_woocommerce_action_failure_time_period', 30 * MINUTE_IN_SECONDS ); 745 769 $failed_actions = $this->action_scheduler->search( -
pinterest-for-woocommerce/tags/1.3.10/src/Merchants.php
r2918824 r2965797 136 136 * 137 137 * @param string $merchant_name The default merchant name. 138 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 138 139 */ 139 140 $merchant_name = apply_filters( 'pinterest_for_woocommerce_default_merchant_name', esc_html__( 'Auto-created by Pinterest for WooCommerce', 'pinterest-for-woocommerce' ) ); -
pinterest-for-woocommerce/tags/1.3.10/src/PluginUpdate.php
r2918824 r2965797 271 271 $settings = Pinterest_For_Woocommerce()::get_settings( true, PINTEREST_FOR_WOOCOMMERCE_DATA_NAME ); 272 272 273 unset( $settings['local_feed_id'] ); 273 if ( isset( $settings['local_feed_id'] ) ) { 274 unset( $settings['local_feed_id'] ); 275 } 274 276 275 277 Pinterest_For_Woocommerce()::save_settings( $settings, PINTEREST_FOR_WOOCOMMERCE_DATA_NAME ); -
pinterest-for-woocommerce/tags/1.3.10/src/Product/Attributes/AttributeManager.php
r2918824 r2965797 252 252 * 253 253 * @param string[] $attributes Array of attribute class names (FQN) 254 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 254 255 */ 255 256 return apply_filters( 'wc_pinterest_product_attribute_types', self::ATTRIBUTES ); … … 280 281 $attribute_types = $this->get_attribute_types_for_product( $product ); 281 282 if ( ! isset( $attribute_types[ $attribute_id ] ) ) { 283 /** 284 * Displays an error when an attribute is not supported for a product type. 285 */ 282 286 do_action( 283 287 'wc_pinterest_error', … … 308 312 * @param string[] $applicable_types Array of WooCommerce product types 309 313 * @param string $attribute_type Attribute class name (FQN) 314 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 310 315 */ 311 316 $applicable_types = apply_filters( "wc_pinterest_attribute_applicable_product_types_{$attribute_id}", $applicable_types, $attribute_type ); -
pinterest-for-woocommerce/tags/1.3.10/src/ProductFeedStatus.php
r2918824 r2965797 90 90 91 91 if ( ! empty( $state['status'] ) ) { 92 /** 93 * Feed status hook. 94 * 95 * @param array $state The array holding the feed state props. 96 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 97 */ 92 98 do_action( 'pinterest_for_woocommerce_feed_' . $state['status'], $state ); 93 99 } -
pinterest-for-woocommerce/tags/1.3.10/src/ProductsXmlFeed.php
r2918824 r2965797 257 257 * @param bool $apply_shortcodes Shortcodes are applied if set to `true` and stripped out if set to `false`. 258 258 * @param WC_Product $product WooCommerce product object. 259 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 259 260 */ 260 261 $apply_shortcodes = apply_filters( 'pinterest_for_woocommerce_product_description_apply_shortcodes', false, $product ); … … 324 325 } 325 326 326 // Get the image with a filter for default size. 327 /** 328 * Get the image with a filter for default size. 329 */ 327 330 $image = wp_get_attachment_image_src( $image_id, apply_filters( 'pinterest_for_woocommerce_feed_image_size', 'full' ) ); 328 331 … … 442 445 if ( $attachment_ids && $product->get_image_id() ) { 443 446 foreach ( $attachment_ids as $attachment_id ) { 444 // Get the image with a filter for default size. 447 /** 448 * Get the image with a filter for default size. 449 */ 445 450 $image = wp_get_attachment_image_src( $attachment_id, apply_filters( 'pinterest_for_woocommerce_feed_image_size', 'full' ) ); 446 451 -
pinterest-for-woocommerce/tags/1.3.10/src/RichPins.php
r2918824 r2965797 57 57 if ( $rich_pins_on_products || $rich_pins_on_posts ) { 58 58 59 /** 60 * Rich Pins arguments. 61 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 62 */ 59 63 $args = apply_filters( 60 64 'pinterest_for_woocommerce_richpins_args', … … 180 184 * @param bool $apply_shortcodes Shortcodes are applied if set to `true` and stripped out if set to `false`. 181 185 * @param WC_Product $product WooCommerce product object. 186 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 182 187 */ 183 188 $apply_shortcodes = apply_filters( 'pinterest_for_woocommerce_rich_pins_product_description_apply_shortcodes', false, $product ); … … 232 237 * @param bool $apply_shortcodes Shortcodes are applied if set to `true` and stripped out if set to `false`. 233 238 * @param int The post id. 239 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 234 240 */ 235 241 $apply_shortcodes = apply_filters( 'pinterest_for_woocommerce_rich_pins_post_description_apply_shortcodes', false, get_the_ID() ); -
pinterest-for-woocommerce/tags/1.3.10/src/View/PHPView.php
r2918824 r2965797 89 89 } 90 90 91 /** 92 * Exception hook. 93 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 94 */ 91 95 do_action( 'wc_pinterest_exception', $exception, __METHOD__ ); 92 96 … … 147 151 } 148 152 153 /** 154 * Displays an error message when a view property is missing. 155 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 156 */ 149 157 do_action( 'wc_pinterest_error', sprintf( 'View property "%s" is missing or undefined.', $property ), __METHOD__ ); 150 158 … … 175 183 176 184 if ( ! is_readable( $path ) ) { 185 /** 186 * View not found error. 187 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 188 */ 177 189 do_action( 'wc_pinterest_error', sprintf( 'View not found in path "%s".', $path ), __METHOD__ ); 178 190 … … 219 231 } 220 232 233 /** 234 * View property missing error. 235 * phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment 236 */ 221 237 do_action( 'wc_pinterest_error', sprintf( 'View property "%s" is missing or undefined.', $property ), __METHOD__ ); 222 238 -
pinterest-for-woocommerce/tags/1.3.10/uninstall.php
r2963167 r2965797 9 9 */ 10 10 11 use Automattic\WooCommerce\Pinterest\FeedRegistration;11 use Automattic\WooCommerce\Pinterest\FeedRegistration; 12 12 13 13 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { -
pinterest-for-woocommerce/tags/1.3.10/vendor/autoload.php
r2963167 r2965797 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit b0d91b0495bc953b3db17ca6584809b6::getLoader();25 return ComposerAutoloaderInit91e6cda75315124a675332e76ddbfa71::getLoader(); -
pinterest-for-woocommerce/tags/1.3.10/vendor/autoload_packages.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/CHANGELOG.md
r2918824 r2965797 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [2.11.22] - 2023-08-23 9 ### Changed 10 - Updated package dependencies. [#32605] 11 12 ## [2.11.21] - 2023-05-22 13 ### Added 14 - Set keywords in `composer.json`. [#30756] 15 16 ## [2.11.20] - 2023-05-11 17 18 - Updated package dependencies 19 20 ## [2.11.19] - 2023-04-25 21 ### Fixed 22 - Fix example in README [#30225] 23 24 ## [2.11.18] - 2023-03-28 25 ### Changed 26 - Minor internal updates. 27 28 ## [2.11.17] - 2023-03-27 29 ### Fixed 30 - Don't error when processing packages specifying missing PSR paths. [#29669] 31 32 ## [2.11.16] - 2023-02-20 33 ### Changed 34 - Minor internal updates. 35 36 ## [2.11.15] - 2023-01-11 37 ### Changed 38 - Updated package dependencies. 39 40 ## [2.11.14] - 2022-12-19 41 ### Changed 42 - Use `Composer\ClassMapGenerator\ClassMapGenerator` when available (i.e. with composer 2.4). [#27812] 43 44 ### Fixed 45 - Declare fields for PHP 8.2 compatibility. [#27949] 46 47 ## [2.11.13] - 2022-12-02 48 ### Changed 49 - Updated package dependencies. [#27688] 50 51 ## [2.11.12] - 2022-11-22 52 ### Changed 53 - Updated package dependencies. [#27043] 54 55 ## [2.11.11] - 2022-10-25 56 ### Changed 57 - Sort data in generated `vendor/composer/jetpack_autoload_classmap.php` to avoid spurious diffs. [#26929] 58 59 ## [2.11.10] - 2022-10-05 60 61 - Tests: Clear `COMPOSER_AUTH` environment variable when running Composer for tests. [#26404] 62 63 ## [2.11.9] - 2022-09-27 64 ### Fixed 65 - Tests: Clear `COMPOSER_AUTH` environment variable when running Composer for tests. [#26404] 66 67 ## [2.11.8] - 2022-09-20 68 ### Fixed 69 - Tests: skip test if it requires a version of Composer not compatible with the running version of PHP. [#26143] 70 71 ## [2.11.7] - 2022-07-26 72 ### Changed 73 - Updated package dependencies. [#25158] 74 75 ## [2.11.6] - 2022-06-21 76 ### Changed 77 - Renaming `master` to `trunk`. 78 79 ## [2.11.5] - 2022-05-18 80 ### Fixed 81 - Fix new PHPCS sniffs. [#24366] 82 83 ## [2.11.4] - 2022-04-26 84 ### Changed 85 - Updated package dependencies. 86 87 ## [2.11.3] - 2022-04-19 88 ### Changed 89 - PHPCS: Fix `WordPress.Security.ValidatedSanitizedInput` 90 91 ## [2.11.2] - 2022-03-29 92 ### Changed 93 - Microperformance: Use === null instead of is_null 94 95 ## [2.11.1] - 2022-03-08 96 ### Removed 97 - Removed the Upgrade Handler. 98 99 ## [2.11.0] - 2022-03-08 100 ### Added 101 - On plugin update, pre-load all (non-PSR-4) classes from the plugin to avoid mid-upgrade fatals. 102 103 ## [2.10.13] - 2022-03-01 104 ### Fixed 105 - Fix tests for upstream phpunit change. 7 106 8 107 ## [2.10.12] - 2022-01-25 … … 226 325 - Add Custom Autoloader 227 326 327 [2.11.22]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.21...v2.11.22 328 [2.11.21]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.20...v2.11.21 329 [2.11.20]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.19...v2.11.20 330 [2.11.19]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.18...v2.11.19 331 [2.11.18]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.17...v2.11.18 332 [2.11.17]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.16...v2.11.17 333 [2.11.16]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.15...v2.11.16 334 [2.11.15]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.14...v2.11.15 335 [2.11.14]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.13...v2.11.14 336 [2.11.13]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.12...v2.11.13 337 [2.11.12]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.11...v2.11.12 338 [2.11.11]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.10...v2.11.11 339 [2.11.10]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.9...v2.11.10 340 [2.11.9]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.8...v2.11.9 341 [2.11.8]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.7...v2.11.8 342 [2.11.7]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.6...v2.11.7 343 [2.11.6]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.5...v2.11.6 344 [2.11.5]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.4...v2.11.5 345 [2.11.4]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.3...v2.11.4 346 [2.11.3]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.2...v2.11.3 347 [2.11.2]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.1...v2.11.2 348 [2.11.1]: https://github.com/Automattic/jetpack-autoloader/compare/v2.11.0...v2.11.1 349 [2.11.0]: https://github.com/Automattic/jetpack-autoloader/compare/v2.10.13...v2.11.0 350 [2.10.13]: https://github.com/Automattic/jetpack-autoloader/compare/v2.10.12...v2.10.13 228 351 [2.10.12]: https://github.com/Automattic/jetpack-autoloader/compare/v2.10.11...v2.10.12 229 352 [2.10.11]: https://github.com/Automattic/jetpack-autoloader/compare/v2.10.10...v2.10.11 -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/README.md
r2918824 r2965797 21 21 ```json 22 22 { 23 "require -dev": {24 "automattic/jetpack-autoloader": "^ 1"23 "require": { 24 "automattic/jetpack-autoloader": "^2" 25 25 } 26 26 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/composer.json
r2918824 r2965797 4 4 "type": "composer-plugin", 5 5 "license": "GPL-2.0-or-later", 6 "keywords": [ 7 "autoload", 8 "autoloader", 9 "composer", 10 "plugin", 11 "jetpack", 12 "wordpress" 13 ], 6 14 "require": { 7 15 "composer-plugin-api": "^1.1 || ^2.0" 8 16 }, 9 17 "require-dev": { 10 "yoast/phpunit-polyfills": "1. 0.3",11 "automattic/jetpack-changelogger": "^3. 0"18 "yoast/phpunit-polyfills": "1.1.0", 19 "automattic/jetpack-changelogger": "^3.3.8" 12 20 }, 13 21 "autoload": { … … 23 31 "./vendor/phpunit/phpunit/phpunit --colors=always" 24 32 ], 25 "test-coverage": [26 "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"./tests/php/tmp/coverage-report.php\"",27 "php ./tests/php/bin/test-coverage.php \"$COVERAGE_DIR/clover.xml\""28 ],29 33 "test-php": [ 30 34 "@composer phpunit" 31 35 ] 32 36 }, 33 "repositories": [],34 37 "minimum-stability": "dev", 35 38 "prefer-stable": true, … … 42 45 }, 43 46 "branch-alias": { 44 "dev- master": "2.10.x-dev"47 "dev-trunk": "2.11.x-dev" 45 48 } 46 49 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php
r2918824 r2965797 13 13 // phpcs:disable WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase 14 14 // phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_export 15 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents16 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fopen17 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fwrite18 15 19 16 namespace Automattic\Jetpack\Autoloader; -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php
r2918824 r2965797 13 13 // phpcs:disable WordPress.Files.FileName.InvalidClassFileName 14 14 // phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_export 15 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents16 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fopen17 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_fwrite18 15 // phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 19 16 // phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase … … 24 21 namespace Automattic\Jetpack\Autoloader; 25 22 26 use Composer\Autoload\ClassMapGenerator;27 23 use Composer\Composer; 28 24 use Composer\Config; … … 38 34 */ 39 35 class AutoloadGenerator { 36 37 /** 38 * IO object. 39 * 40 * @var IOInterface IO object. 41 */ 42 private $io; 40 43 41 44 /** … … 303 306 $this->filesystem->isAbsolutePath( $path ) ? $path : $basePath . '/' . $path 304 307 ); 305 return ClassMapGenerator::createMap( 308 309 // Composer 2.4 changed the name of the class. 310 if ( class_exists( \Composer\ClassMapGenerator\ClassMapGenerator::class ) ) { 311 if ( ! is_dir( $dir ) && ! is_file( $dir ) ) { 312 return array(); 313 } 314 $generator = new \Composer\ClassMapGenerator\ClassMapGenerator(); 315 $generator->scanPaths( $dir, $excludedClasses, 'classmap', empty( $namespace ) ? null : $namespace ); 316 return $generator->getClassMap()->getMap(); 317 } 318 319 return \Composer\Autoload\ClassMapGenerator::createMap( 306 320 $dir, 307 321 $excludedClasses, -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/AutoloadProcessor.php
r2918824 r2965797 120 120 } 121 121 122 ksort( $processed ); 123 122 124 return $processed; 123 125 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php
r2918824 r2965797 124 124 $generator = new AutoloadGenerator( $this->io ); 125 125 $generator->dump( $this->composer, $config, $localRepo, $package, $installationManager, 'composer', $optimize, $suffix ); 126 $this->generated = true;127 126 } 128 127 … … 146 145 // Reuse our own suffix, if any. 147 146 if ( is_readable( $vendorPath . '/autoload_packages.php' ) ) { 148 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents149 147 $content = file_get_contents( $vendorPath . '/autoload_packages.php' ); 150 148 if ( preg_match( '/^namespace Automattic\\\\Jetpack\\\\Autoloader\\\\jp([^;\s]+);/m', $content, $match ) ) { … … 155 153 // Reuse Composer's suffix, if any. 156 154 if ( is_readable( $vendorPath . '/autoload.php' ) ) { 157 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents158 155 $content = file_get_contents( $vendorPath . '/autoload.php' ); 159 156 if ( preg_match( '{ComposerAutoloaderInit([^:\s]+)::}', $content, $match ) ) { -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php
r2918824 r2965797 81 81 } 82 82 83 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated just below. 83 84 $action = isset( $_REQUEST['action'] ) ? wp_unslash( $_REQUEST['action'] ) : false; 84 85 if ( ! in_array( $action, $allowed_actions, true ) ) { … … 94 95 } 95 96 97 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated by convert_plugins_to_paths. 96 98 $plugin_slugs[] = wp_unslash( $_REQUEST['plugin'] ); 97 99 break; … … 103 105 } 104 106 107 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated by convert_plugins_to_paths. 105 108 $plugin_slugs = wp_unslash( $_REQUEST['checked'] ); 106 109 break; -
pinterest-for-woocommerce/tags/1.3.10/vendor/automattic/jetpack-autoloader/src/class-version-selector.php
r2918824 r2965797 22 22 $use_dev_versions = defined( 'JETPACK_AUTOLOAD_DEV' ) && JETPACK_AUTOLOAD_DEV; 23 23 24 if ( is_null( $selected_version )) {24 if ( $selected_version === null ) { 25 25 return true; 26 26 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/bin/generate-defuse-key
r2963167 r2965797 109 109 } 110 110 111 if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) { 112 include("phpvfscomposer://" . __DIR__ . '/..'.'/defuse/php-encryption/bin/generate-defuse-key'); 113 exit(0); 111 if ( 112 (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) 113 || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) 114 ) { 115 return include("phpvfscomposer://" . __DIR__ . '/..'.'/defuse/php-encryption/bin/generate-defuse-key'); 114 116 } 115 117 } 116 118 117 include __DIR__ . '/..'.'/defuse/php-encryption/bin/generate-defuse-key';119 return include __DIR__ . '/..'.'/defuse/php-encryption/bin/generate-defuse-key'; -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/ClassLoader.php
r2963167 r2965797 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/InstalledVersions.php
r2963167 r2965797 29 29 /** 30 30 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 32 */ 33 33 private static $installed; … … 40 40 /** 41 41 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 43 43 */ 44 44 private static $installedByVendor = array(); … … 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 244 244 /** 245 245 * @return array 246 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} 247 247 */ 248 248 public static function getRootPackage() … … 258 258 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 259 * @return array[] 260 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} 261 261 */ 262 262 public static function getRawData() … … 281 281 * 282 282 * @return array[] 283 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 284 284 */ 285 285 public static function getAllRawData() … … 304 304 * @return void 305 305 * 306 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data 307 307 */ 308 308 public static function reload($data) … … 314 314 /** 315 315 * @return array[] 316 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> 317 317 */ 318 318 private static function getInstalled() … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/autoload_real.php
r2963167 r2965797 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit b0d91b0495bc953b3db17ca6584809b65 class ComposerAutoloaderInit91e6cda75315124a675332e76ddbfa71 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit b0d91b0495bc953b3db17ca6584809b6', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit91e6cda75315124a675332e76ddbfa71', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit b0d91b0495bc953b3db17ca6584809b6', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit91e6cda75315124a675332e76ddbfa71', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit b0d91b0495bc953b3db17ca6584809b6::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit91e6cda75315124a675332e76ddbfa71::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/autoload_static.php
r2963167 r2965797 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit b0d91b0495bc953b3db17ca6584809b67 class ComposerStaticInit91e6cda75315124a675332e76ddbfa71 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 47 47 { 48 48 return \Closure::bind(function () use ($loader) { 49 $loader->prefixLengthsPsr4 = ComposerStaticInit b0d91b0495bc953b3db17ca6584809b6::$prefixLengthsPsr4;50 $loader->prefixDirsPsr4 = ComposerStaticInit b0d91b0495bc953b3db17ca6584809b6::$prefixDirsPsr4;51 $loader->classMap = ComposerStaticInit b0d91b0495bc953b3db17ca6584809b6::$classMap;49 $loader->prefixLengthsPsr4 = ComposerStaticInit91e6cda75315124a675332e76ddbfa71::$prefixLengthsPsr4; 50 $loader->prefixDirsPsr4 = ComposerStaticInit91e6cda75315124a675332e76ddbfa71::$prefixDirsPsr4; 51 $loader->classMap = ComposerStaticInit91e6cda75315124a675332e76ddbfa71::$classMap; 52 52 53 53 }, null, ClassLoader::class); -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/installed.json
r2918824 r2965797 3 3 { 4 4 "name": "automattic/jetpack-autoloader", 5 "version": "v2.1 0.12",6 "version_normalized": "2.1 0.12.0",5 "version": "v2.11.22", 6 "version_normalized": "2.11.22.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/Automattic/jetpack-autoloader.git", 10 "reference": " 4e406f3b747261f3848d7efa6faac45a296dacca"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/ 4e406f3b747261f3848d7efa6faac45a296dacca",15 "reference": " 4e406f3b747261f3848d7efa6faac45a296dacca",10 "reference": "32cc6b4a30e5cb5be669b4c8bed7330202e9f0c1" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/32cc6b4a30e5cb5be669b4c8bed7330202e9f0c1", 15 "reference": "32cc6b4a30e5cb5be669b4c8bed7330202e9f0c1", 16 16 "shasum": "" 17 17 }, … … 20 20 }, 21 21 "require-dev": { 22 "automattic/jetpack-changelogger": "^3. 0",23 "yoast/phpunit-polyfills": "1. 0.3"24 }, 25 "time": "202 2-01-25T17:38:25+00:00",22 "automattic/jetpack-changelogger": "^3.3.8", 23 "yoast/phpunit-polyfills": "1.1.0" 24 }, 25 "time": "2023-08-23T17:57:14+00:00", 26 26 "type": "composer-plugin", 27 27 "extra": { … … 33 33 }, 34 34 "branch-alias": { 35 "dev- master": "2.10.x-dev"35 "dev-trunk": "2.11.x-dev" 36 36 } 37 37 }, … … 50 50 ], 51 51 "description": "Creates a custom autoloader for a plugin or theme.", 52 "support": { 53 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.10.12" 52 "keywords": [ 53 "autoload", 54 "autoloader", 55 "composer", 56 "jetpack", 57 "plugin", 58 "wordpress" 59 ], 60 "support": { 61 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v2.11.22" 54 62 }, 55 63 "install-path": "../automattic/jetpack-autoloader" … … 57 65 { 58 66 "name": "defuse/php-encryption", 59 "version": "v2. 3.1",60 "version_normalized": "2. 3.1.0",67 "version": "v2.4.0", 68 "version_normalized": "2.4.0.0", 61 69 "source": { 62 70 "type": "git", 63 71 "url": "https://github.com/defuse/php-encryption.git", 64 "reference": " 77880488b9954b7884c25555c2a0ea9e7053f9d2"65 }, 66 "dist": { 67 "type": "zip", 68 "url": "https://api.github.com/repos/defuse/php-encryption/zipball/ 77880488b9954b7884c25555c2a0ea9e7053f9d2",69 "reference": " 77880488b9954b7884c25555c2a0ea9e7053f9d2",72 "reference": "f53396c2d34225064647a05ca76c1da9d99e5828" 73 }, 74 "dist": { 75 "type": "zip", 76 "url": "https://api.github.com/repos/defuse/php-encryption/zipball/f53396c2d34225064647a05ca76c1da9d99e5828", 77 "reference": "f53396c2d34225064647a05ca76c1da9d99e5828", 70 78 "shasum": "" 71 79 }, … … 76 84 }, 77 85 "require-dev": { 78 "phpunit/phpunit": "^4|^5|^6|^7|^8|^9" 79 }, 80 "time": "2021-04-09T23:57:26+00:00", 86 "phpunit/phpunit": "^5|^6|^7|^8|^9|^10", 87 "yoast/phpunit-polyfills": "^2.0.0" 88 }, 89 "time": "2023-06-19T06:10:36+00:00", 81 90 "bin": [ 82 91 "bin/generate-defuse-key" … … 120 129 "support": { 121 130 "issues": "https://github.com/defuse/php-encryption/issues", 122 "source": "https://github.com/defuse/php-encryption/tree/v2. 3.1"131 "source": "https://github.com/defuse/php-encryption/tree/v2.4.0" 123 132 }, 124 133 "install-path": "../defuse/php-encryption" -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/installed.php
r2963167 r2965797 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => 'dev-release/1.3.9', 4 'version' => 'dev-release/1.3.9', 3 'name' => 'woocommerce/pinterest-for-woocommerce', 4 'pretty_version' => 'dev-release/1.3.10', 5 'version' => 'dev-release/1.3.10', 6 'reference' => '8a13a772a1f78ebedaa6c2cbbcbe6bcb8b1aed36', 5 7 'type' => 'wordpress-plugin', 6 8 'install_path' => __DIR__ . '/../../', 7 9 'aliases' => array(), 8 'reference' => '9c64bda46c78ec61e2bafc4ed59055d4c971e0f0',9 'name' => 'woocommerce/pinterest-for-woocommerce',10 10 'dev' => false, 11 11 ), 12 12 'versions' => array( 13 13 'automattic/jetpack-autoloader' => array( 14 'pretty_version' => 'v2.10.12', 15 'version' => '2.10.12.0', 14 'pretty_version' => 'v2.11.22', 15 'version' => '2.11.22.0', 16 'reference' => '32cc6b4a30e5cb5be669b4c8bed7330202e9f0c1', 16 17 'type' => 'composer-plugin', 17 18 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 18 19 'aliases' => array(), 19 'reference' => '4e406f3b747261f3848d7efa6faac45a296dacca',20 20 'dev_requirement' => false, 21 21 ), 22 22 'defuse/php-encryption' => array( 23 'pretty_version' => 'v2.3.1', 24 'version' => '2.3.1.0', 23 'pretty_version' => 'v2.4.0', 24 'version' => '2.4.0.0', 25 'reference' => 'f53396c2d34225064647a05ca76c1da9d99e5828', 25 26 'type' => 'library', 26 27 'install_path' => __DIR__ . '/../defuse/php-encryption', 27 28 'aliases' => array(), 28 'reference' => '77880488b9954b7884c25555c2a0ea9e7053f9d2',29 29 'dev_requirement' => false, 30 30 ), … … 32 32 'pretty_version' => 'v9.99.100', 33 33 'version' => '9.99.100.0', 34 'reference' => '996434e5492cb4c3edcb9168db6fbb1359ef965a', 34 35 'type' => 'library', 35 36 'install_path' => __DIR__ . '/../paragonie/random_compat', 36 37 'aliases' => array(), 37 'reference' => '996434e5492cb4c3edcb9168db6fbb1359ef965a',38 38 'dev_requirement' => false, 39 39 ), … … 41 41 'pretty_version' => '2.0.0', 42 42 'version' => '2.0.0.0', 43 'reference' => 'b0b21b9cc87e476ba7f8817050b39274ea7d6732', 43 44 'type' => 'library', 44 45 'install_path' => __DIR__ . '/../woocommerce/action-scheduler-job-framework', 45 46 'aliases' => array(), 46 'reference' => 'b0b21b9cc87e476ba7f8817050b39274ea7d6732',47 47 'dev_requirement' => false, 48 48 ), 49 49 'woocommerce/pinterest-for-woocommerce' => array( 50 'pretty_version' => 'dev-release/1.3.9', 51 'version' => 'dev-release/1.3.9', 50 'pretty_version' => 'dev-release/1.3.10', 51 'version' => 'dev-release/1.3.10', 52 'reference' => '8a13a772a1f78ebedaa6c2cbbcbe6bcb8b1aed36', 52 53 'type' => 'wordpress-plugin', 53 54 'install_path' => __DIR__ . '/../../', 54 55 'aliases' => array(), 55 'reference' => '9c64bda46c78ec61e2bafc4ed59055d4c971e0f0',56 56 'dev_requirement' => false, 57 57 ), -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/jetpack_autoload_classmap.php
r2918824 r2965797 8 8 return array( 9 9 'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array( 10 'version' => '2.1 0.12.0',10 'version' => '2.11.22.0', 11 11 'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php' 12 12 ), -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/jetpack_autoload_psr4.php
r2963167 r2965797 8 8 return array( 9 9 'Defuse\\Crypto\\' => array( 10 'version' => '2. 3.1.0',10 'version' => '2.4.0.0', 11 11 'path' => array( $vendorDir . '/defuse/php-encryption/src' ) 12 12 ), 13 13 'Automattic\\WooCommerce\\Pinterest\\' => array( 14 'version' => 'dev-release/1.3. 9',14 'version' => 'dev-release/1.3.10', 15 15 'path' => array( $baseDir . '/src' ) 16 16 ), … … 20 20 ), 21 21 'Automattic\\Jetpack\\Autoloader\\' => array( 22 'version' => '2.1 0.12.0',22 'version' => '2.11.22.0', 23 23 'path' => array( $vendorDir . '/automattic/jetpack-autoloader/src' ) 24 24 ), -
pinterest-for-woocommerce/tags/1.3.10/vendor/composer/platform_check.php
r2918824 r2965797 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 300)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 3.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70400)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/LICENSE
r2918824 r2965797 1 1 The MIT License (MIT) 2 2 3 Copyright (c) 2016 Taylor Hornby <https://defuse.ca> and Paragon Initiative4 Enterprises <https://paragonie.com>.3 Copyright (c) 2016 Taylor Hornby <https://defuse.ca> 4 Copyright (c) 2016 Paragon Initiative Enterprises <https://paragonie.com>. 5 5 6 6 Permission is hereby granted, free of charge, to any person obtaining a copy of -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/README.md
r2918824 r2965797 2 2 =============== 3 3 4 [](https://travis-ci.org/defuse/php-encryption)4  5 5 [](https://codecov.io/gh/defuse/php-encryption) 6 6 [](https://packagist.org/packages/defuse/php-encryption) … … 16 16 version of PHP that [still has security 17 17 support](https://www.php.net/supported-versions.php), which at the time of 18 writing means PHP 7.3or later. Using this library with an unsupported18 writing means PHP 8.0 or later. Using this library with an unsupported 19 19 version of PHP could lead to security vulnerabilities. 20 20 21 The current version of `php-encryption` is v2. 3.1. This library is expected to21 The current version of `php-encryption` is v2.4.0. This library is expected to 22 22 remain stable and supported by its authors with security and bugfixes until at 23 least January 1st, 202 2.23 least January 1st, 2024. 24 24 25 25 The library is a joint effort between [Taylor Hornby](https://defuse.ca/) and -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/composer.json
r2918824 r2965797 27 27 }, 28 28 "require-dev": { 29 "phpunit/phpunit": "^4|^5|^6|^7|^8|^9" 29 "yoast/phpunit-polyfills": "^2.0.0", 30 "phpunit/phpunit": "^5|^6|^7|^8|^9|^10" 30 31 }, 31 32 "bin": [ -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/dist/Makefile
r2918824 r2965797 32 32 defuse-crypto.phar: dist/box.json composer.lock 33 33 cp dist/box.json . 34 php -d phar.readonly=0 $(box) build-c box.json -v34 php $(box) compile -c box.json -v 35 35 36 36 composer.lock: -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/dist/box.json
r2918824 r2965797 16 16 } 17 17 ], 18 "compactors": [19 "Herrera\\Box\\Compactor\\Php"20 ],21 18 "main": "vendor/autoload.php", 22 19 "output": "defuse-crypto.phar", -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/docs/InternalDeveloperDocs.md
r2918824 r2965797 112 112 ``` 113 113 114 Check that the version number in composer.json is correct :114 Check that the version number in composer.json is correct (or not specified so that it gets picked up from the git tag): 115 115 116 116 ``` … … 142 142 ``` 143 143 cd ../ 144 ./test.sh dist/ defuse-crypto.phar144 ./test.sh dist/phar-testing-autoload.php 145 145 ``` 146 146 -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/Core.php
r2918824 r2965797 99 99 public static function secureRandom($octets) 100 100 { 101 if ($octets <= 0) { 102 throw new Ex\CryptoException( 103 'A zero or negative amount of random bytes was requested.' 104 ); 105 } 101 106 self::ensureFunctionExists('random_bytes'); 102 107 try { 103 return \random_bytes( $octets);108 return \random_bytes(max(1, $octets)); 104 109 } catch (\Exception $ex) { 105 110 throw new Ex\EnvironmentIsBrokenException( … … 286 291 static $exists = null; 287 292 if ($exists === null) { 288 $exists = \extension_loaded('mbstring') && \ ini_get('mbstring.func_overload') !== false && (int)\ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING;293 $exists = \extension_loaded('mbstring') && \function_exists('mb_strlen'); 289 294 } 290 295 if ($exists) { … … 312 317 static $exists = null; 313 318 if ($exists === null) { 314 $exists = \extension_loaded('mbstring') && \ ini_get('mbstring.func_overload') !== false && (int)\ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING;319 $exists = \extension_loaded('mbstring') && \function_exists('mb_substr'); 315 320 } 316 321 … … 382 387 * @return string A $key_length-byte key derived from the password and salt. 383 388 */ 384 public static function pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false) 389 public static function pbkdf2( 390 $algorithm, 391 #[\SensitiveParameter] 392 $password, 393 $salt, 394 $count, 395 $key_length, 396 $raw_output = false 397 ) 385 398 { 386 399 // Type checks: -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/Crypto.php
r2918824 r2965797 56 56 * @return string 57 57 */ 58 public static function encryptWithPassword($plaintext, $password, $raw_binary = false) 58 public static function encryptWithPassword( 59 $plaintext, 60 #[\SensitiveParameter] 61 $password, 62 $raw_binary = false 63 ) 59 64 { 60 65 if (!\is_string($plaintext)) { … … 131 136 * @return string 132 137 */ 133 public static function decryptWithPassword($ciphertext, $password, $raw_binary = false) 138 public static function decryptWithPassword( 139 $ciphertext, 140 #[\SensitiveParameter] 141 $password, 142 $raw_binary = false 143 ) 134 144 { 135 145 if (!\is_string($ciphertext)) { … … 167 177 * @return string 168 178 */ 169 public static function legacyDecrypt($ciphertext, $key) 179 public static function legacyDecrypt( 180 $ciphertext, 181 #[\SensitiveParameter] 182 $key 183 ) 170 184 { 171 185 if (!\is_string($ciphertext)) { … … 379 393 * @return string 380 394 */ 381 protected static function plainEncrypt($plaintext, $key, $iv) 395 protected static function plainEncrypt( 396 $plaintext, 397 #[\SensitiveParameter] 398 $key, 399 #[\SensitiveParameter] 400 $iv 401 ) 382 402 { 383 403 Core::ensureConstantExists('OPENSSL_RAW_DATA'); … … 409 429 * @return string 410 430 */ 411 protected static function plainDecrypt($ciphertext, $key, $iv, $cipherMethod) 431 protected static function plainDecrypt( 432 $ciphertext, 433 #[\SensitiveParameter] 434 $key, 435 #[\SensitiveParameter] 436 $iv, 437 $cipherMethod 438 ) 412 439 { 413 440 Core::ensureConstantExists('OPENSSL_RAW_DATA'); … … 438 465 * @return bool 439 466 */ 440 protected static function verifyHMAC($expected_hmac, $message, $key) 467 protected static function verifyHMAC( 468 $expected_hmac, 469 $message, 470 #[\SensitiveParameter] 471 $key 472 ) 441 473 { 442 474 $message_hmac = \hash_hmac(Core::HASH_FUNCTION_NAME, $message, $key, true); -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/Encoding.php
r2918824 r2965797 176 176 * @return string 177 177 */ 178 public static function saveBytesToChecksummedAsciiSafeString($header, $bytes) 178 public static function saveBytesToChecksummedAsciiSafeString( 179 $header, 180 #[\SensitiveParameter] 181 $bytes 182 ) 179 183 { 180 184 // Headers must be a constant length to prevent one type's header from … … 208 212 * @return string 209 213 */ 210 public static function loadBytesFromChecksummedAsciiSafeString($expected_header, $string) 214 public static function loadBytesFromChecksummedAsciiSafeString( 215 $expected_header, 216 #[\SensitiveParameter] 217 $string 218 ) 211 219 { 212 220 // Headers must be a constant length to prevent one type's header from -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/File.php
r2918824 r2965797 39 39 * @throws Ex\IOException 40 40 */ 41 public static function encryptFileWithPassword($inputFilename, $outputFilename, $password) 41 public static function encryptFileWithPassword( 42 $inputFilename, 43 $outputFilename, 44 #[\SensitiveParameter] 45 $password 46 ) 42 47 { 43 48 self::encryptFileInternal( … … 82 87 * @throws Ex\WrongKeyOrModifiedCiphertextException 83 88 */ 84 public static function decryptFileWithPassword($inputFilename, $outputFilename, $password) 89 public static function decryptFileWithPassword( 90 $inputFilename, 91 $outputFilename, 92 #[\SensitiveParameter] 93 $password 94 ) 85 95 { 86 96 self::decryptFileInternal( … … 126 136 * @throws Ex\WrongKeyOrModifiedCiphertextException 127 137 */ 128 public static function encryptResourceWithPassword($inputHandle, $outputHandle, $password) 138 public static function encryptResourceWithPassword( 139 $inputHandle, 140 $outputHandle, 141 #[\SensitiveParameter] 142 $password 143 ) 129 144 { 130 145 self::encryptResourceInternal( … … 170 185 * @throws Ex\WrongKeyOrModifiedCiphertextException 171 186 */ 172 public static function decryptResourceWithPassword($inputHandle, $outputHandle, $password) 187 public static function decryptResourceWithPassword( 188 $inputHandle, 189 $outputHandle, 190 #[\SensitiveParameter] 191 $password 192 ) 173 193 { 174 194 self::decryptResourceInternal( … … 197 217 198 218 /* Open the input file. */ 219 self::removePHPUnitErrorHandler(); 199 220 $if = @\fopen($inputFilename, 'rb'); 221 self::restorePHPUnitErrorHandler(); 200 222 if ($if === false) { 201 223 throw new Ex\IOException( … … 210 232 211 233 /* Open the output file. */ 234 self::removePHPUnitErrorHandler(); 212 235 $of = @\fopen($outputFilename, 'wb'); 236 self::restorePHPUnitErrorHandler(); 213 237 if ($of === false) { 214 238 \fclose($if); … … 266 290 267 291 /* Open the input file. */ 292 self::removePHPUnitErrorHandler(); 268 293 $if = @\fopen($inputFilename, 'rb'); 294 self::restorePHPUnitErrorHandler(); 269 295 if ($if === false) { 270 296 throw new Ex\IOException( … … 280 306 281 307 /* Open the output file. */ 308 self::removePHPUnitErrorHandler(); 282 309 $of = @\fopen($outputFilename, 'wb'); 310 self::restorePHPUnitErrorHandler(); 283 311 if ($of === false) { 284 312 \fclose($if); … … 771 799 $error = error_get_last(); 772 800 if ($error === null) { 773 return '[no PHP error ]';801 return '[no PHP error, or you have a custom error handler set]'; 774 802 } else { 775 803 return $error['message']; 776 804 } 777 805 } 806 807 /** 808 * PHPUnit sets an error handler, which prevents getLastErrorMessage() from working, 809 * because error_get_last does not work when custom handlers are set. 810 * 811 * This is a workaround, which should be a no-op in production deployments, to make 812 * getLastErrorMessage() return the error messages that the PHPUnit tests expect. 813 * 814 * If, in a production deployment, a custom error handler is set, the exception 815 * handling will still work as usual, but the error messages will be confusing. 816 * 817 * @return void 818 */ 819 private static function removePHPUnitErrorHandler() { 820 if (defined('PHPUNIT_COMPOSER_INSTALL') || defined('__PHPUNIT_PHAR__')) { 821 set_error_handler(null); 822 } 823 } 824 825 /** 826 * Undoes what removePHPUnitErrorHandler did. 827 * 828 * @return void 829 */ 830 private static function restorePHPUnitErrorHandler() { 831 if (defined('PHPUNIT_COMPOSER_INSTALL') || defined('__PHPUNIT_PHAR__')) { 832 restore_error_handler(); 833 } 834 } 778 835 } -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/Key.php
r2918824 r2965797 42 42 * @return Key 43 43 */ 44 public static function loadFromAsciiSafeString($saved_key_string, $do_not_trim = false) 44 public static function loadFromAsciiSafeString( 45 #[\SensitiveParameter] 46 $saved_key_string, 47 $do_not_trim = false 48 ) 45 49 { 46 50 if (!$do_not_trim) { … … 83 87 * @throws Ex\EnvironmentIsBrokenException 84 88 */ 85 private function __construct($bytes) 89 private function __construct( 90 #[\SensitiveParameter] 91 $bytes 92 ) 86 93 { 87 94 Core::ensureTrue( -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/KeyOrPassword.php
r2918824 r2965797 40 40 * @return KeyOrPassword 41 41 */ 42 public static function createFromPassword($password) 42 public static function createFromPassword( 43 #[\SensitiveParameter] 44 $password 45 ) 43 46 { 44 47 return new KeyOrPassword(self::SECRET_TYPE_PASSWORD, $password); … … 134 137 * @param mixed $secret (either a Key or a password string) 135 138 */ 136 private function __construct($secret_type, $secret) 139 private function __construct( 140 $secret_type, 141 #[\SensitiveParameter] 142 $secret 143 ) 137 144 { 138 145 // The constructor is private, so these should never throw. -
pinterest-for-woocommerce/tags/1.3.10/vendor/defuse/php-encryption/src/KeyProtectedByPassword.php
r2918824 r2965797 23 23 * @return KeyProtectedByPassword 24 24 */ 25 public static function createRandomPasswordProtectedKey($password) 25 public static function createRandomPasswordProtectedKey( 26 #[\SensitiveParameter] 27 $password 28 ) 26 29 { 27 30 $inner_key = Key::createNewRandomKey(); … … 48 51 * @return KeyProtectedByPassword 49 52 */ 50 public static function loadFromAsciiSafeString($saved_key_string) 53 public static function loadFromAsciiSafeString( 54 #[\SensitiveParameter] 55 $saved_key_string 56 ) 51 57 { 52 58 $encrypted_key = Encoding::loadBytesFromChecksummedAsciiSafeString( … … 83 89 * @return Key 84 90 */ 85 public function unlockKey($password) 91 public function unlockKey( 92 #[\SensitiveParameter] 93 $password 94 ) 86 95 { 87 96 try { … … 116 125 * @return KeyProtectedByPassword 117 126 */ 118 public function changePassword($current_password, $new_password) 127 public function changePassword( 128 #[\SensitiveParameter] 129 $current_password, 130 #[\SensitiveParameter] 131 $new_password 132 ) 119 133 { 120 134 $inner_key = $this->unlockKey($current_password); -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-autoloader-handler.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-autoloader-locator.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-autoloader.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-container.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-hook-manager.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-latest-autoloader-guard.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-manifest-reader.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-path-processor.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-php-autoloader.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-plugin-locator.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore … … 89 89 } 90 90 91 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated just below. 91 92 $action = isset( $_REQUEST['action'] ) ? wp_unslash( $_REQUEST['action'] ) : false; 92 93 if ( ! in_array( $action, $allowed_actions, true ) ) { … … 102 103 } 103 104 105 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated by convert_plugins_to_paths. 104 106 $plugin_slugs[] = wp_unslash( $_REQUEST['plugin'] ); 105 107 break; … … 111 113 } 112 114 115 // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Validated by convert_plugins_to_paths. 113 116 $plugin_slugs = wp_unslash( $_REQUEST['checked'] ); 114 117 break; -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-plugins-handler.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-shutdown-handler.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-version-loader.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore -
pinterest-for-woocommerce/tags/1.3.10/vendor/jetpack-autoloader/class-version-selector.php
r2963167 r2965797 6 6 */ 7 7 8 namespace Automattic\Jetpack\Autoloader\jp b0d91b0495bc953b3db17ca6584809b6;8 namespace Automattic\Jetpack\Autoloader\jp91e6cda75315124a675332e76ddbfa71; 9 9 10 10 // phpcs:ignore … … 30 30 $use_dev_versions = defined( 'JETPACK_AUTOLOAD_DEV' ) && JETPACK_AUTOLOAD_DEV; 31 31 32 if ( is_null( $selected_version )) {32 if ( $selected_version === null ) { 33 33 return true; 34 34 } -
pinterest-for-woocommerce/trunk/readme.txt
r2963167 r2965797 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.3 7 Stable tag: 1.3. 97 Stable tag: 1.3.10 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.