Version Description
- 2022-01-14 =
- Fix - Replace is_ajax with wp_doing_ajax
- Tweak - Update contributor guidelines
- Tweak - WC 6.1 compatibility
Download this release
Release Info
Developer | automattic |
Plugin | Facebook for WooCommerce |
Version | 2.6.9 |
Comparing to | |
See all releases |
Code changes from version 2.6.8 to 2.6.9
- changelog.txt +10 -5
- class-wc-facebookcommerce.php +1 -1
- facebook-commerce.php +1 -1
- facebook-for-woocommerce.php +3 -3
- i18n/languages/facebook-for-woocommerce.pot +4 -4
- includes/Products/Sync.php +1 -1
- readme.txt +11 -6
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.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,10 +1,15 @@
|
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
3 |
-
|
4 |
-
* Fix -
|
5 |
-
*
|
6 |
-
* Tweak - WC 6.
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
2021-11-04 - version 2.6.7
|
10 |
* Fix - Parameter overloading error for PHP70 #2112
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
3 |
+
2022-01-14 - version 2.6.9
|
4 |
+
* Fix - Replace is_ajax with wp_doing_ajax
|
5 |
+
* Tweak - Update contributor guidelines
|
6 |
+
* Tweak - WC 6.1 compatibility
|
7 |
+
|
8 |
+
2021-12-21 - version 2.6.8
|
9 |
+
* Fix - Bump template from 1.0.4 to 1.0.5. #2115
|
10 |
+
* Fix - Fix empty "value" for variable products. #1784
|
11 |
+
* Tweak - WC 6.0 compatibility.
|
12 |
+
* Tweak - WP 5.9 compatibility.
|
13 |
|
14 |
2021-11-04 - version 2.6.7
|
15 |
* Fix - Parameter overloading error for PHP70 #2112
|
class-wc-facebookcommerce.php
CHANGED
@@ -158,7 +158,7 @@ if ( ! class_exists( 'WC_Facebookcommerce' ) ) :
|
|
158 |
$this->commerce_handler = new \SkyVerge\WooCommerce\Facebook\Commerce();
|
159 |
$this->fb_categories = new \SkyVerge\WooCommerce\Facebook\Products\FBCategories();
|
160 |
|
161 |
-
if (
|
162 |
$this->ajax = new \SkyVerge\WooCommerce\Facebook\AJAX();
|
163 |
}
|
164 |
|
158 |
$this->commerce_handler = new \SkyVerge\WooCommerce\Facebook\Commerce();
|
159 |
$this->fb_categories = new \SkyVerge\WooCommerce\Facebook\Products\FBCategories();
|
160 |
|
161 |
+
if ( wp_doing_ajax() ) {
|
162 |
$this->ajax = new \SkyVerge\WooCommerce\Facebook\AJAX();
|
163 |
}
|
164 |
|
facebook-commerce.php
CHANGED
@@ -976,7 +976,7 @@ class WC_Facebookcommerce_Integration extends WC_Integration {
|
|
976 |
*
|
977 |
* @see ajax_delete_fb_product()
|
978 |
*/
|
979 |
-
if ( ( !
|
980 |
&& ! Products::published_product_should_be_synced( $product ) ) {
|
981 |
|
982 |
return;
|
976 |
*
|
977 |
* @see ajax_delete_fb_product()
|
978 |
*/
|
979 |
+
if ( ( ! wp_doing_ajax() || ! isset( $_POST['action'] ) || 'ajax_delete_fb_product' !== $_POST['action'] )
|
980 |
&& ! Products::published_product_should_be_synced( $product ) ) {
|
981 |
|
982 |
return;
|
facebook-for-woocommerce.php
CHANGED
@@ -11,11 +11,11 @@
|
|
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: 2.6.
|
15 |
* Text Domain: facebook-for-woocommerce
|
16 |
* Tested up to: 5.9
|
17 |
* WC requires at least: 3.5.0
|
18 |
-
* WC tested up to: 6.
|
19 |
* Requires PHP: 7.0
|
20 |
*
|
21 |
* @package FacebookCommerce
|
@@ -33,7 +33,7 @@ class WC_Facebook_Loader {
|
|
33 |
/**
|
34 |
* @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
|
35 |
*/
|
36 |
-
const PLUGIN_VERSION = '2.6.
|
37 |
|
38 |
// Minimum PHP version required by this plugin.
|
39 |
const MINIMUM_PHP_VERSION = '7.0.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: 2.6.9
|
15 |
* Text Domain: facebook-for-woocommerce
|
16 |
* Tested up to: 5.9
|
17 |
* WC requires at least: 3.5.0
|
18 |
+
* WC tested up to: 6.1
|
19 |
* Requires PHP: 7.0
|
20 |
*
|
21 |
* @package FacebookCommerce
|
33 |
/**
|
34 |
* @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
|
35 |
*/
|
36 |
+
const PLUGIN_VERSION = '2.6.9'; // WRCS: DEFINED_VERSION.
|
37 |
|
38 |
// Minimum PHP version required by this plugin.
|
39 |
const MINIMUM_PHP_VERSION = '7.0.0';
|
i18n/languages/facebook-for-woocommerce.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Facebook for WooCommerce package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Facebook for WooCommerce 2.6.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
1 |
+
# Copyright (C) 2022 Facebook
|
2 |
# This file is distributed under the same license as the Facebook for WooCommerce package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Facebook for WooCommerce 2.6.9\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
+
"POT-Creation-Date: 2022-01-14 21:16:07+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
includes/Products/Sync.php
CHANGED
@@ -130,7 +130,7 @@ class Sync {
|
|
130 |
}
|
131 |
|
132 |
// bail if admin and not AJAX
|
133 |
-
if ( is_admin() && !
|
134 |
return;
|
135 |
}
|
136 |
|
130 |
}
|
131 |
|
132 |
// bail if admin and not AJAX
|
133 |
+
if ( is_admin() && ! wp_doing_ajax() ) {
|
134 |
return;
|
135 |
}
|
136 |
|
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: 5.9
|
6 |
-
Stable tag: 2.6.
|
7 |
Requires PHP: 5.6 or greater
|
8 |
MySQL: 5.6 or greater
|
9 |
License: GPLv2 or later
|
@@ -39,11 +39,16 @@ When opening a bug on GitHub, please give us as many details as possible.
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
-
= 2.6.
|
43 |
-
* Fix -
|
44 |
-
*
|
45 |
-
* Tweak - WC 6.
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
= 2.6.7 - 2021-11-04 =
|
49 |
* Fix - Parameter overloading error for PHP70 #2112
|
3 |
Tags: facebook, shop, catalog, advertise, pixel, product
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.9
|
6 |
+
Stable tag: 2.6.9
|
7 |
Requires PHP: 5.6 or greater
|
8 |
MySQL: 5.6 or greater
|
9 |
License: GPLv2 or later
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 2.6.9 - 2022-01-14 =
|
43 |
+
* Fix - Replace is_ajax with wp_doing_ajax
|
44 |
+
* Tweak - Update contributor guidelines
|
45 |
+
* Tweak - WC 6.1 compatibility
|
46 |
+
|
47 |
+
= 2.6.8 - 2021-12-21 =
|
48 |
+
* Fix - Bump template from 1.0.4 to 1.0.5. #2115
|
49 |
+
* Fix - Fix empty "value" for variable products. #1784
|
50 |
+
* Tweak - WC 6.0 compatibility.
|
51 |
+
* Tweak - WP 5.9 compatibility.
|
52 |
|
53 |
= 2.6.7 - 2021-11-04 =
|
54 |
* Fix - Parameter overloading error for PHP70 #2112
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit7a0cfb48396cdfd30eab4dbdb464dedd::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -149,7 +149,7 @@ class ClassLoader
|
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
-
* @psalm-
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
149 |
|
150 |
/**
|
151 |
* @return string[] Array of classname => path
|
152 |
+
* @psalm-return array<string, string>
|
153 |
*/
|
154 |
public function getClassMap()
|
155 |
{
|
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,15 +24,15 @@ class ComposerAutoloaderInit49cdde79378180527690a72431d1b0f7
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit7a0cfb48396cdfd30eab4dbdb464dedd
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit7a0cfb48396cdfd30eab4dbdb464dedd', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit7a0cfb48396cdfd30eab4dbdb464dedd', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit7a0cfb48396cdfd30eab4dbdb464dedd::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
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 |
'S' =>
|
@@ -43,9 +43,9 @@ class ComposerStaticInit49cdde79378180527690a72431d1b0f7
|
|
43 |
public static function getInitializer(ClassLoader $loader)
|
44 |
{
|
45 |
return \Closure::bind(function () use ($loader) {
|
46 |
-
$loader->prefixLengthsPsr4 =
|
47 |
-
$loader->prefixDirsPsr4 =
|
48 |
-
$loader->classMap =
|
49 |
|
50 |
}, null, ClassLoader::class);
|
51 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit7a0cfb48396cdfd30eab4dbdb464dedd
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
43 |
public static function getInitializer(ClassLoader $loader)
|
44 |
{
|
45 |
return \Closure::bind(function () use ($loader) {
|
46 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit7a0cfb48396cdfd30eab4dbdb464dedd::$prefixLengthsPsr4;
|
47 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit7a0cfb48396cdfd30eab4dbdb464dedd::$prefixDirsPsr4;
|
48 |
+
$loader->classMap = ComposerStaticInit7a0cfb48396cdfd30eab4dbdb464dedd::$classMap;
|
49 |
|
50 |
}, null, ClassLoader::class);
|
51 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'pretty_version' => 'dev-release/2.6.
|
4 |
-
'version' => 'dev-release/2.6.
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'facebookincubator/facebook-for-woocommerce',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -20,12 +20,12 @@
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'facebookincubator/facebook-for-woocommerce' => array(
|
23 |
-
'pretty_version' => 'dev-release/2.6.
|
24 |
-
'version' => 'dev-release/2.6.
|
25 |
'type' => 'wordpress-plugin',
|
26 |
'install_path' => __DIR__ . '/../../',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => '
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'roundcube/plugin-installer' => array(
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => 'dev-release/2.6.9',
|
4 |
+
'version' => 'dev-release/2.6.9',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '3272df7632a28a6cf50e4dac901825ccca424e7e',
|
9 |
'name' => 'facebookincubator/facebook-for-woocommerce',
|
10 |
'dev' => false,
|
11 |
),
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'facebookincubator/facebook-for-woocommerce' => array(
|
23 |
+
'pretty_version' => 'dev-release/2.6.9',
|
24 |
+
'version' => 'dev-release/2.6.9',
|
25 |
'type' => 'wordpress-plugin',
|
26 |
'install_path' => __DIR__ . '/../../',
|
27 |
'aliases' => array(),
|
28 |
+
'reference' => '3272df7632a28a6cf50e4dac901825ccca424e7e',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'roundcube/plugin-installer' => array(
|