Plugin Directory

Changeset 3063820

Timestamp:
04/03/2024 02:36:14 PM (4 months ago)
Author:
ecgan
Message:

Tagging version 3.1.14

Location:
facebook-for-woocommerce
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • facebook-for-woocommerce/tags/3.1.14/changelog.txt

    r3059743 r3063820  
    11*** Facebook for WooCommerce Changelog ***
     2
     3
     4
     5
     6
    27
    38= 3.1.13 - 2024-03-27 =
  • facebook-for-woocommerce/tags/3.1.14/facebook-commerce-pixel-event.php

    r3014846 r3063820  
    162162
    163163                document.addEventListener( 'DOMContentLoaded', function() {
    164                     jQuery && jQuery( function( $ ) {
    165                         // Insert placeholder for events injected when a product is added to the cart through AJAX.
    166                         $( document.body ).append( '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
    167                     } );
     164                    // Insert placeholder for events injected when a product is added to the cart through AJAX.
     165                    document.body.insertAdjacentHTML( 'beforeend', '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
    168166                }, false );
    169167
  • facebook-for-woocommerce/tags/3.1.14/facebook-for-woocommerce.php

    r3059743 r3063820  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.1.13
     14 * Version: 3.1.1
    1515 * Requires at least: 5.6
    1616 * Text Domain: facebook-for-woocommerce
    1717 * Tested up to: 6.5
    1818 * WC requires at least: 6.4
    19  * WC tested up to: 8.7
     19 * WC tested up to: 8.
    2020 *
    2121 * @package FacebookCommerce
     
    4545     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    4646     */
    47     const PLUGIN_VERSION = '3.1.13'; // WRCS: DEFINED_VERSION.
     47    const PLUGIN_VERSION = '3.1.1'; // WRCS: DEFINED_VERSION.
    4848
    4949    // Minimum PHP version required by this plugin.
     
    8686
    8787        register_activation_hook( __FILE__, array( $this, 'activation_check' ) );
     88
    8889
    8990        add_action( 'admin_init', array( $this, 'check_environment' ) );
     
    315316    }
    316317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
    317331
    318332    /**
     
    382396        return defined( 'WC_VERSION' ) && version_compare( WC_VERSION, self::MINIMUM_WC_VERSION, '>=' );
    383397    }
    384 
    385398
    386399    /**
  • facebook-for-woocommerce/tags/3.1.14/i18n/languages/facebook-for-woocommerce.pot

    r3059743 r3063820  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.1.13\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-03-27T11:47:40+00:00\n"
     12"POT-Creation-Date: 2024-00+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
     
    154154
    155155#. translators: %1$s - plugin name, %2$s - minimum WordPress version required, %3$s - update WordPress link open, %4$s - update WordPress link close
    156 #: facebook-for-woocommerce.php:223
     156#: facebook-for-woocommerce.php:22
    157157msgid "%1$s requires WordPress version %2$s or higher. Please %3$supdate WordPress &raquo;%4$s"
    158158msgstr ""
    159159
    160160#. translators: %1$s - Plugin Name, %2$s - activate WooCommerce link open, %3$s - activate WooCommerce link close.
    161 #: facebook-for-woocommerce.php:249
     161#: facebook-for-woocommerce.php:2
    162162msgid "%1$s requires WooCommerce to be activated. Please %2$sactivate WooCommerce%3$s."
    163163msgstr ""
    164164
    165165#. translators: %1$s - Plugin Name, %2$s - install WooCommerce link open, %3$s - install WooCommerce link close.
    166 #: facebook-for-woocommerce.php:266
     166#: facebook-for-woocommerce.php:26
    167167msgid "%1$s requires WooCommerce to be installed and activated. Please %2$sinstall WooCommerce%3$s."
    168168msgstr ""
    169169
    170170#. translators: %1$s - Plugin Name, %2$s - minimum WooCommerce version, %3$s - update WooCommerce link open, %4$s - update WooCommerce link close, %5$s - download minimum WooCommerce link open, %6$s - download minimum WooCommerce link close.
    171 #: facebook-for-woocommerce.php:286
     171#: facebook-for-woocommerce.php:28
    172172msgid "%1$s requires WooCommerce version %2$s or higher. Please %3$supdate WooCommerce%4$s to the latest version, or %5$sdownload the minimum required version &raquo;%6$s"
    173173msgstr ""
  • facebook-for-woocommerce/tags/3.1.14/readme.txt

    r3059743 r3063820  
    44Requires at least: 4.4
    55Tested up to: 6.5
    6 Stable tag: 3.1.13
     6Stable tag: 3.1.1
    77Requires PHP: 5.6 or greater
    88MySQL: 5.6 or greater
     
    4141== Changelog ==
    4242
     43
     44
     45
     46
     47
    4348= 3.1.13 - 2024-03-27 =
    4449* Add - Messenger feature deprecation notices.
  • facebook-for-woocommerce/tags/3.1.14/vendor/autoload.php

    r3059743 r3063820  
    44
    55if (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    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7::getLoader();
     25return ComposerAutoloaderInit0::getLoader();
  • facebook-for-woocommerce/tags/3.1.14/vendor/composer/ClassLoader.php

    r3059743 r3063820  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    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>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    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
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • facebook-for-woocommerce/tags/3.1.14/vendor/composer/InstalledVersions.php

    r3059743 r3063820  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } 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;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            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;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • facebook-for-woocommerce/tags/3.1.14/vendor/composer/autoload_real.php

    r3059743 r3063820  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7
     5class ComposerAutoloaderInit0
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit0', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit0', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit0::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • facebook-for-woocommerce/tags/3.1.14/vendor/composer/autoload_static.php

    r3059743 r3063820  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7
     7class ComposerStaticInit0
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    185185    {
    186186        return \Closure::bind(function () use ($loader) {
    187             $loader->prefixLengthsPsr4 = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$prefixLengthsPsr4;
    188             $loader->prefixDirsPsr4 = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$prefixDirsPsr4;
    189             $loader->classMap = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$classMap;
     187            $loader->prefixLengthsPsr4 = ComposerStaticInit0::$prefixLengthsPsr4;
     188            $loader->prefixDirsPsr4 = ComposerStaticInit0::$prefixDirsPsr4;
     189            $loader->classMap = ComposerStaticInit0::$classMap;
    190190
    191191        }, null, ClassLoader::class);
  • facebook-for-woocommerce/tags/3.1.14/vendor/composer/installed.php

    r3059743 r3063820  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.1.13',
    5         'version' => 'dev-release/3.1.13',
    6         'reference' => 'e1d3aba56e1556d836e8fac862f43a5216bf49bf',
     4        'pretty_version' => 'dev-release/3.1.1',
     5        'version' => 'dev-release/3.1.1',
     6        'reference' => 'e',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'facebookincubator/facebook-for-woocommerce' => array(
    14             'pretty_version' => 'dev-release/3.1.13',
    15             'version' => 'dev-release/3.1.13',
    16             'reference' => 'e1d3aba56e1556d836e8fac862f43a5216bf49bf',
     14            'pretty_version' => 'dev-release/3.1.1',
     15            'version' => 'dev-release/3.1.1',
     16            'reference' => 'e',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • facebook-for-woocommerce/trunk/changelog.txt

    r3059743 r3063820  
    11*** Facebook for WooCommerce Changelog ***
     2
     3
     4
     5
     6
    27
    38= 3.1.13 - 2024-03-27 =
  • facebook-for-woocommerce/trunk/facebook-commerce-pixel-event.php

    r3014846 r3063820  
    162162
    163163                document.addEventListener( 'DOMContentLoaded', function() {
    164                     jQuery && jQuery( function( $ ) {
    165                         // Insert placeholder for events injected when a product is added to the cart through AJAX.
    166                         $( document.body ).append( '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
    167                     } );
     164                    // Insert placeholder for events injected when a product is added to the cart through AJAX.
     165                    document.body.insertAdjacentHTML( 'beforeend', '<div class=\"wc-facebook-pixel-event-placeholder\"></div>' );
    168166                }, false );
    169167
  • facebook-for-woocommerce/trunk/facebook-for-woocommerce.php

    r3059743 r3063820  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.1.13
     14 * Version: 3.1.1
    1515 * Requires at least: 5.6
    1616 * Text Domain: facebook-for-woocommerce
    1717 * Tested up to: 6.5
    1818 * WC requires at least: 6.4
    19  * WC tested up to: 8.7
     19 * WC tested up to: 8.
    2020 *
    2121 * @package FacebookCommerce
     
    4545     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    4646     */
    47     const PLUGIN_VERSION = '3.1.13'; // WRCS: DEFINED_VERSION.
     47    const PLUGIN_VERSION = '3.1.1'; // WRCS: DEFINED_VERSION.
    4848
    4949    // Minimum PHP version required by this plugin.
     
    8686
    8787        register_activation_hook( __FILE__, array( $this, 'activation_check' ) );
     88
    8889
    8990        add_action( 'admin_init', array( $this, 'check_environment' ) );
     
    315316    }
    316317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
    317331
    318332    /**
     
    382396        return defined( 'WC_VERSION' ) && version_compare( WC_VERSION, self::MINIMUM_WC_VERSION, '>=' );
    383397    }
    384 
    385398
    386399    /**
  • facebook-for-woocommerce/trunk/i18n/languages/facebook-for-woocommerce.pot

    r3059743 r3063820  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.1.13\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-03-27T11:47:40+00:00\n"
     12"POT-Creation-Date: 2024-00+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
     
    154154
    155155#. translators: %1$s - plugin name, %2$s - minimum WordPress version required, %3$s - update WordPress link open, %4$s - update WordPress link close
    156 #: facebook-for-woocommerce.php:223
     156#: facebook-for-woocommerce.php:22
    157157msgid "%1$s requires WordPress version %2$s or higher. Please %3$supdate WordPress &raquo;%4$s"
    158158msgstr ""
    159159
    160160#. translators: %1$s - Plugin Name, %2$s - activate WooCommerce link open, %3$s - activate WooCommerce link close.
    161 #: facebook-for-woocommerce.php:249
     161#: facebook-for-woocommerce.php:2
    162162msgid "%1$s requires WooCommerce to be activated. Please %2$sactivate WooCommerce%3$s."
    163163msgstr ""
    164164
    165165#. translators: %1$s - Plugin Name, %2$s - install WooCommerce link open, %3$s - install WooCommerce link close.
    166 #: facebook-for-woocommerce.php:266
     166#: facebook-for-woocommerce.php:26
    167167msgid "%1$s requires WooCommerce to be installed and activated. Please %2$sinstall WooCommerce%3$s."
    168168msgstr ""
    169169
    170170#. translators: %1$s - Plugin Name, %2$s - minimum WooCommerce version, %3$s - update WooCommerce link open, %4$s - update WooCommerce link close, %5$s - download minimum WooCommerce link open, %6$s - download minimum WooCommerce link close.
    171 #: facebook-for-woocommerce.php:286
     171#: facebook-for-woocommerce.php:28
    172172msgid "%1$s requires WooCommerce version %2$s or higher. Please %3$supdate WooCommerce%4$s to the latest version, or %5$sdownload the minimum required version &raquo;%6$s"
    173173msgstr ""
  • facebook-for-woocommerce/trunk/readme.txt

    r3059743 r3063820  
    44Requires at least: 4.4
    55Tested up to: 6.5
    6 Stable tag: 3.1.13
     6Stable tag: 3.1.1
    77Requires PHP: 5.6 or greater
    88MySQL: 5.6 or greater
     
    4141== Changelog ==
    4242
     43
     44
     45
     46
     47
    4348= 3.1.13 - 2024-03-27 =
    4449* Add - Messenger feature deprecation notices.
  • facebook-for-woocommerce/trunk/vendor/autoload.php

    r3059743 r3063820  
    44
    55if (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    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7::getLoader();
     25return ComposerAutoloaderInit0::getLoader();
  • facebook-for-woocommerce/trunk/vendor/composer/ClassLoader.php

    r3059743 r3063820  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    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>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    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
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • facebook-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r3059743 r3063820  
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } 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;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            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;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • facebook-for-woocommerce/trunk/vendor/composer/autoload_real.php

    r3059743 r3063820  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7
     5class ComposerAutoloaderInit0
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit0', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit093b3ec695ad6736cb98ed96df0fbfc7', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit0', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit0::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • facebook-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r3059743 r3063820  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7
     7class ComposerStaticInit0
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    185185    {
    186186        return \Closure::bind(function () use ($loader) {
    187             $loader->prefixLengthsPsr4 = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$prefixLengthsPsr4;
    188             $loader->prefixDirsPsr4 = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$prefixDirsPsr4;
    189             $loader->classMap = ComposerStaticInit093b3ec695ad6736cb98ed96df0fbfc7::$classMap;
     187            $loader->prefixLengthsPsr4 = ComposerStaticInit0::$prefixLengthsPsr4;
     188            $loader->prefixDirsPsr4 = ComposerStaticInit0::$prefixDirsPsr4;
     189            $loader->classMap = ComposerStaticInit0::$classMap;
    190190
    191191        }, null, ClassLoader::class);
  • facebook-for-woocommerce/trunk/vendor/composer/installed.php

    r3059743 r3063820  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.1.13',
    5         'version' => 'dev-release/3.1.13',
    6         'reference' => 'e1d3aba56e1556d836e8fac862f43a5216bf49bf',
     4        'pretty_version' => 'dev-release/3.1.1',
     5        'version' => 'dev-release/3.1.1',
     6        'reference' => 'e',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'facebookincubator/facebook-for-woocommerce' => array(
    14             'pretty_version' => 'dev-release/3.1.13',
    15             'version' => 'dev-release/3.1.13',
    16             'reference' => 'e1d3aba56e1556d836e8fac862f43a5216bf49bf',
     14            'pretty_version' => 'dev-release/3.1.1',
     15            'version' => 'dev-release/3.1.1',
     16            'reference' => 'e',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.