Version Description
- 2022-11-21 =
- Dev - Ensure return value matches method signature.
Download this release
Release Info
Developer | automattic |
Plugin | Facebook for WooCommerce |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- changelog.txt +3 -0
- facebook-for-woocommerce.php +2 -2
- i18n/languages/facebook-for-woocommerce.pot +2 -2
- includes/Products/Sync/Background.php +2 -1
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
= 3.0.3 - 2022-11-18 =
|
4 |
* Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
|
5 |
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
3 |
+
= 3.0.4 - 2022-11-21 =
|
4 |
+
* Dev - Ensure return value matches method signature.
|
5 |
+
|
6 |
= 3.0.3 - 2022-11-18 =
|
7 |
* Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
|
8 |
|
facebook-for-woocommerce.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* Description: Grow your business on Facebook! Use this official plugin to help sell more of your products using Facebook. After completing the setup, you'll be ready to create ads that promote your products and you can also create a shop section on your Page where customers can browse your products on Facebook.
|
12 |
* Author: Facebook
|
13 |
* Author URI: https://www.facebook.com/
|
14 |
-
* Version: 3.0.
|
15 |
* Text Domain: facebook-for-woocommerce
|
16 |
* Tested up to: 6.1
|
17 |
* WC requires at least: 5.3
|
@@ -44,7 +44,7 @@ class WC_Facebook_Loader {
|
|
44 |
/**
|
45 |
* @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
|
46 |
*/
|
47 |
-
const PLUGIN_VERSION = '3.0.
|
48 |
|
49 |
// Minimum PHP version required by this plugin.
|
50 |
const MINIMUM_PHP_VERSION = '7.2.0';
|
11 |
* Description: Grow your business on Facebook! Use this official plugin to help sell more of your products using Facebook. After completing the setup, you'll be ready to create ads that promote your products and you can also create a shop section on your Page where customers can browse your products on Facebook.
|
12 |
* Author: Facebook
|
13 |
* Author URI: https://www.facebook.com/
|
14 |
+
* Version: 3.0.4
|
15 |
* Text Domain: facebook-for-woocommerce
|
16 |
* Tested up to: 6.1
|
17 |
* WC requires at least: 5.3
|
44 |
/**
|
45 |
* @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
|
46 |
*/
|
47 |
+
const PLUGIN_VERSION = '3.0.4'; // WRCS: DEFINED_VERSION.
|
48 |
|
49 |
// Minimum PHP version required by this plugin.
|
50 |
const MINIMUM_PHP_VERSION = '7.2.0';
|
i18n/languages/facebook-for-woocommerce.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Facebook for WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Facebook for WooCommerce 3.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-11-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.7.1\n"
|
15 |
"X-Domain: facebook-for-woocommerce\n"
|
2 |
# This file is distributed under the same license as the Facebook for WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Facebook for WooCommerce 3.0.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-11-21T15:01:13+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.7.1\n"
|
15 |
"X-Domain: facebook-for-woocommerce\n"
|
includes/Products/Sync/Background.php
CHANGED
@@ -341,6 +341,7 @@ class Background extends BackgroundJobHandler {
|
|
341 |
private function send_item_updates( array $requests ): array {
|
342 |
$facebook_catalog_id = facebook_for_woocommerce()->get_integration()->get_product_catalog_id();
|
343 |
$response = facebook_for_woocommerce()->get_api()->send_item_updates( $facebook_catalog_id, $requests );
|
344 |
-
|
|
|
345 |
}
|
346 |
}
|
341 |
private function send_item_updates( array $requests ): array {
|
342 |
$facebook_catalog_id = facebook_for_woocommerce()->get_integration()->get_product_catalog_id();
|
343 |
$response = facebook_for_woocommerce()->get_api()->send_item_updates( $facebook_catalog_id, $requests );
|
344 |
+
$handles = ( isset( $response->handles ) && is_array( $response->handles ) ) ? $response->handles : [];
|
345 |
+
return $handles;
|
346 |
}
|
347 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: facebook, automattic, woothemes
|
|
3 |
Tags: facebook, shop, catalog, advertise, pixel, product
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.1
|
6 |
-
Stable tag: 3.0.
|
7 |
Requires PHP: 5.6 or greater
|
8 |
MySQL: 5.6 or greater
|
9 |
License: GPLv2 or later
|
@@ -39,6 +39,9 @@ When opening a bug on GitHub, please give us as many details as possible.
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
42 |
= 3.0.3 - 2022-11-18 =
|
43 |
* Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
|
44 |
|
3 |
Tags: facebook, shop, catalog, advertise, pixel, product
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.1
|
6 |
+
Stable tag: 3.0.4
|
7 |
Requires PHP: 5.6 or greater
|
8 |
MySQL: 5.6 or greater
|
9 |
License: GPLv2 or later
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 3.0.4 - 2022-11-21 =
|
43 |
+
* Dev - Ensure return value matches method signature.
|
44 |
+
|
45 |
= 3.0.3 - 2022-11-18 =
|
46 |
* Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
|
47 |
|
vendor/autoload.php
CHANGED
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
22 |
|
23 |
require_once __DIR__ . '/composer/autoload_real.php';
|
24 |
|
25 |
-
return
|
22 |
|
23 |
require_once __DIR__ . '/composer/autoload_real.php';
|
24 |
|
25 |
+
return ComposerAutoloaderInitf27dc863d9a3226468fcf31dab3c9197::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,12 +24,12 @@ class ComposerAutoloaderInit6a85a9a0a4ca0df5040a0a1a5566fe07
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
-
call_user_func(\Composer\Autoload\
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitf27dc863d9a3226468fcf31dab3c9197
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitf27dc863d9a3226468fcf31dab3c9197', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf27dc863d9a3226468fcf31dab3c9197', 'loadClassLoader'));
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitf27dc863d9a3226468fcf31dab3c9197::getInitializer($loader));
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -301,9 +301,9 @@ class ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07
|
|
301 |
public static function getInitializer(ClassLoader $loader)
|
302 |
{
|
303 |
return \Closure::bind(function () use ($loader) {
|
304 |
-
$loader->prefixLengthsPsr4 =
|
305 |
-
$loader->prefixDirsPsr4 =
|
306 |
-
$loader->classMap =
|
307 |
|
308 |
}, null, ClassLoader::class);
|
309 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitf27dc863d9a3226468fcf31dab3c9197
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
301 |
public static function getInitializer(ClassLoader $loader)
|
302 |
{
|
303 |
return \Closure::bind(function () use ($loader) {
|
304 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitf27dc863d9a3226468fcf31dab3c9197::$prefixLengthsPsr4;
|
305 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitf27dc863d9a3226468fcf31dab3c9197::$prefixDirsPsr4;
|
306 |
+
$loader->classMap = ComposerStaticInitf27dc863d9a3226468fcf31dab3c9197::$classMap;
|
307 |
|
308 |
}, null, ClassLoader::class);
|
309 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'facebookincubator/facebook-for-woocommerce',
|
4 |
-
'pretty_version' => 'dev-
|
5 |
-
'version' => 'dev-
|
6 |
-
'reference' => '
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
@@ -20,9 +20,9 @@
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'facebookincubator/facebook-for-woocommerce' => array(
|
23 |
-
'pretty_version' => 'dev-
|
24 |
-
'version' => 'dev-
|
25 |
-
'reference' => '
|
26 |
'type' => 'wordpress-plugin',
|
27 |
'install_path' => __DIR__ . '/../../',
|
28 |
'aliases' => array(),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
'name' => 'facebookincubator/facebook-for-woocommerce',
|
4 |
+
'pretty_version' => 'dev-trunk',
|
5 |
+
'version' => 'dev-trunk',
|
6 |
+
'reference' => 'a3b2276dff752664f94a719893daa10d3104060f',
|
7 |
'type' => 'wordpress-plugin',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'facebookincubator/facebook-for-woocommerce' => array(
|
23 |
+
'pretty_version' => 'dev-trunk',
|
24 |
+
'version' => 'dev-trunk',
|
25 |
+
'reference' => 'a3b2276dff752664f94a719893daa10d3104060f',
|
26 |
'type' => 'wordpress-plugin',
|
27 |
'install_path' => __DIR__ . '/../../',
|
28 |
'aliases' => array(),
|