Facebook for WooCommerce - Version 3.0.3

Version Description

  • 2022-11-18 =
  • Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
Download this release

Release Info

Developer automattic
Plugin Icon Facebook for WooCommerce
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

changelog.txt CHANGED
@@ -1,6 +1,9 @@
1
  *** Facebook for WooCommerce Changelog ***
2
 
3
- = 3.0.2 - 2022-11-18 =
 
 
 
4
  * Fix - Properly handle API exceptions
5
  * Fix - Set correct PHP version in plugin header
6
  * Dev - Add ArrayAccess implementation to JSONResponse class
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
+
6
+ = 3.0.2 - 2022-11-18 =
7
  * Fix - Properly handle API exceptions
8
  * Fix - Set correct PHP version in plugin header
9
  * Dev - Add ArrayAccess implementation to JSONResponse class
facebook-commerce.php CHANGED
@@ -2668,11 +2668,13 @@ class WC_Facebookcommerce_Integration extends WC_Integration {
2668
  */
2669
  private function get_message_html( string $message, string $type = 'error' ): string {
2670
  ob_start();
2671
- $type = esc_attr( $type );
2672
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2673
- echo <<<MESSAGE
2674
- <div class="notice is-dismissible notice-{$type}"><p>{$message}</p></div>
2675
- MESSAGE;
 
 
 
2676
  return ob_get_clean();
2677
  }
2678
 
@@ -2724,14 +2726,15 @@ class WC_Facebookcommerce_Integration extends WC_Integration {
2724
  public function admin_options() {
2725
  $this->facebook_for_woocommerce->get_message_handler()->show_messages();
2726
 
2727
- $display = ! $this->is_configured() ? 'style="display: none"' : '';
2728
- $settings = $this->generate_settings_html( $this->get_form_fields() );
2729
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2730
- echo <<<HTML
2731
- <div id="integration-settings" {$display}>
2732
- <table class="form-table">{$settings}</table>
2733
- </div>
2734
- HTML;
 
 
 
2735
  }
2736
 
2737
  /**
2668
  */
2669
  private function get_message_html( string $message, string $type = 'error' ): string {
2670
  ob_start();
 
2671
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2672
+ printf(
2673
+ '<div class="notice is-dismissible notice-%s"><p>%s</p></div>',
2674
+ esc_attr( $type ),
2675
+ $message
2676
+ );
2677
+
2678
  return ob_get_clean();
2679
  }
2680
 
2726
  public function admin_options() {
2727
  $this->facebook_for_woocommerce->get_message_handler()->show_messages();
2728
 
 
 
2729
  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2730
+ printf(
2731
+ '<div id="integration-settings" %s>%s</div>',
2732
+ ! $this->is_configured() ? 'style="display: none"' : '',
2733
+ sprintf(
2734
+ '<table class="form-table">%s</table>',
2735
+ $this->generate_settings_html( $this->get_form_fields() )
2736
+ )
2737
+ );
2738
  }
2739
 
2740
  /**
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.2
15
  * Text Domain: facebook-for-woocommerce
16
  * Tested up to: 6.1
17
  * WC requires at least: 5.3
@@ -44,10 +44,10 @@ 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.2'; // WRCS: DEFINED_VERSION.
48
 
49
  // Minimum PHP version required by this plugin.
50
- const MINIMUM_PHP_VERSION = '7.0.0';
51
 
52
  // Minimum WordPress version required by this plugin.
53
  const MINIMUM_WP_VERSION = '4.4';
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.3
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.3'; // WRCS: DEFINED_VERSION.
48
 
49
  // Minimum PHP version required by this plugin.
50
+ const MINIMUM_PHP_VERSION = '7.2.0';
51
 
52
  // Minimum WordPress version required by this plugin.
53
  const MINIMUM_WP_VERSION = '4.4';
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.2\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-18T12:26:21-05: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"
@@ -128,12 +128,12 @@ msgstr ""
128
  msgid "Hi! We're here to answer any questions you may have."
129
  msgstr ""
130
 
131
- #: facebook-commerce.php:2685
132
  msgid "Facebook for WooCommerce error:"
133
  msgstr ""
134
 
135
  #. translators: Placeholders %1$s - original error message from Facebook API
136
- #: facebook-commerce.php:2919
137
  msgid "There was an issue connecting to the Facebook API: %s"
138
  msgstr ""
139
 
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.3\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-18T15:45:27-05: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"
128
  msgid "Hi! We're here to answer any questions you may have."
129
  msgstr ""
130
 
131
+ #: facebook-commerce.php:2687
132
  msgid "Facebook for WooCommerce error:"
133
  msgstr ""
134
 
135
  #. translators: Placeholders %1$s - original error message from Facebook API
136
+ #: facebook-commerce.php:2922
137
  msgid "There was an issue connecting to the Facebook API: %s"
138
  msgstr ""
139
 
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.2
7
  Requires PHP: 5.6 or greater
8
  MySQL: 5.6 or greater
9
  License: GPLv2 or later
@@ -39,7 +39,10 @@ When opening a bug on GitHub, please give us as many details as possible.
39
 
40
  == Changelog ==
41
 
42
- = 3.0.2 - 2022-11-18 =
 
 
 
43
  * Fix - Properly handle API exceptions
44
  * Fix - Set correct PHP version in plugin header
45
  * Dev - Add ArrayAccess implementation to JSONResponse class
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.3
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.3 - 2022-11-18 =
43
+ * Fix - Remove flexible heredoc syntax that is incompatible with PHP 7.2
44
+
45
+ = 3.0.2 - 2022-11-18 =
46
  * Fix - Properly handle API exceptions
47
  * Fix - Set correct PHP version in plugin header
48
  * Dev - Add ArrayAccess implementation to JSONResponse class
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 ComposerAutoloaderInitca050a41463ac28647bff37744adcf81::getLoader();
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
+ return ComposerAutoloaderInit6a85a9a0a4ca0df5040a0a1a5566fe07::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitca050a41463ac28647bff37744adcf81
6
  {
7
  private static $loader;
8
 
@@ -24,12 +24,12 @@ class ComposerAutoloaderInitca050a41463ac28647bff37744adcf81
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitca050a41463ac28647bff37744adcf81', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitca050a41463ac28647bff37744adcf81', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
- call_user_func(\Composer\Autoload\ComposerStaticInitca050a41463ac28647bff37744adcf81::getInitializer($loader));
33
 
34
  $loader->register(true);
35
 
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6a85a9a0a4ca0df5040a0a1a5566fe07
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit6a85a9a0a4ca0df5040a0a1a5566fe07', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit6a85a9a0a4ca0df5040a0a1a5566fe07', 'loadClassLoader'));
30
 
31
  require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07::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 ComposerStaticInitca050a41463ac28647bff37744adcf81
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
@@ -301,9 +301,9 @@ class ComposerStaticInitca050a41463ac28647bff37744adcf81
301
  public static function getInitializer(ClassLoader $loader)
302
  {
303
  return \Closure::bind(function () use ($loader) {
304
- $loader->prefixLengthsPsr4 = ComposerStaticInitca050a41463ac28647bff37744adcf81::$prefixLengthsPsr4;
305
- $loader->prefixDirsPsr4 = ComposerStaticInitca050a41463ac28647bff37744adcf81::$prefixDirsPsr4;
306
- $loader->classMap = ComposerStaticInitca050a41463ac28647bff37744adcf81::$classMap;
307
 
308
  }, null, ClassLoader::class);
309
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07
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 = ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07::$prefixLengthsPsr4;
305
+ $loader->prefixDirsPsr4 = ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07::$prefixDirsPsr4;
306
+ $loader->classMap = ComposerStaticInit6a85a9a0a4ca0df5040a0a1a5566fe07::$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-hotfix/3.0.2',
5
- 'version' => 'dev-hotfix/3.0.2',
6
- 'reference' => 'ff7a8e4ed3bd0893bb4e475ff42b819d6f4e0316',
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-hotfix/3.0.2',
24
- 'version' => 'dev-hotfix/3.0.2',
25
- 'reference' => 'ff7a8e4ed3bd0893bb4e475ff42b819d6f4e0316',
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-hotfix/3.0.3',
5
+ 'version' => 'dev-hotfix/3.0.3',
6
+ 'reference' => '468abd597556b47b6e8b49adb4389c2ecfbe0eb7',
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-hotfix/3.0.3',
24
+ 'version' => 'dev-hotfix/3.0.3',
25
+ 'reference' => '468abd597556b47b6e8b49adb4389c2ecfbe0eb7',
26
  'type' => 'wordpress-plugin',
27
  'install_path' => __DIR__ . '/../../',
28
  'aliases' => array(),