Version Description
Download this release
Release Info
Developer | SkyVerge |
Plugin | Facebook for WooCommerce |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- changelog.txt +3 -0
- class-wc-facebookcommerce.php +1 -1
- facebook-for-woocommerce.php +2 -2
- i18n/languages/facebook-for-woocommerce.pot +2 -2
- includes/Handlers/Connection.php +11 -4
- readme.txt +4 -1
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
2020.07.30 - version 2.0.0
|
4 |
* Tweak - Show Facebook options for virtual products and variations
|
5 |
* Tweak - Hide "Sync and show" option for virtual products and variations
|
1 |
*** Facebook for WooCommerce Changelog ***
|
2 |
|
3 |
+
2020.08.17 - version 2.0.1
|
4 |
+
* Fix - Ensure the configured business name is never empty when connecting to Facebook
|
5 |
+
|
6 |
2020.07.30 - version 2.0.0
|
7 |
* Tweak - Show Facebook options for virtual products and variations
|
8 |
* Tweak - Hide "Sync and show" option for virtual products and variations
|
class-wc-facebookcommerce.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'WC_Facebookcommerce' ) ) :
|
|
21 |
|
22 |
|
23 |
/** @var string the plugin version */
|
24 |
-
const VERSION = '2.0.
|
25 |
|
26 |
/** @var string for backwards compatibility TODO: remove this in v2.0.0 {CW 2020-02-06} */
|
27 |
const PLUGIN_VERSION = self::VERSION;
|
21 |
|
22 |
|
23 |
/** @var string the plugin version */
|
24 |
+
const VERSION = '2.0.1';
|
25 |
|
26 |
/** @var string for backwards compatibility TODO: remove this in v2.0.0 {CW 2020-02-06} */
|
27 |
const PLUGIN_VERSION = self::VERSION;
|
facebook-for-woocommerce.php
CHANGED
@@ -10,10 +10,10 @@
|
|
10 |
* 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.
|
11 |
* Author: Facebook
|
12 |
* Author URI: https://www.facebook.com/
|
13 |
-
* Version: 2.0.
|
14 |
* Text Domain: facebook-for-woocommerce
|
15 |
* WC requires at least: 3.5.0
|
16 |
-
* WC tested up to: 4.3.
|
17 |
*
|
18 |
* @package FacebookCommerce
|
19 |
*/
|
10 |
* 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.
|
11 |
* Author: Facebook
|
12 |
* Author URI: https://www.facebook.com/
|
13 |
+
* Version: 2.0.1
|
14 |
* Text Domain: facebook-for-woocommerce
|
15 |
* WC requires at least: 3.5.0
|
16 |
+
* WC tested up to: 4.3.3
|
17 |
*
|
18 |
* @package FacebookCommerce
|
19 |
*/
|
i18n/languages/facebook-for-woocommerce.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
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.0.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
-
"POT-Creation-Date: 2020-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
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.0.1\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
+
"POT-Creation-Date: 2020-08-17 20:20:42+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
includes/Handlers/Connection.php
CHANGED
@@ -453,7 +453,7 @@ class Connection {
|
|
453 |
|
454 |
if ( ! is_string( $value ) ) {
|
455 |
|
456 |
-
$value = sanitize_title(
|
457 |
|
458 |
update_option( self::OPTION_EXTERNAL_BUSINESS_ID, $value );
|
459 |
}
|
@@ -482,18 +482,25 @@ class Connection {
|
|
482 |
*/
|
483 |
public function get_business_name() {
|
484 |
|
485 |
-
$business_name =
|
486 |
|
487 |
/**
|
488 |
* Filters the shop's business name.
|
489 |
*
|
490 |
-
* This is passed to Facebook when connecting.
|
|
|
491 |
*
|
492 |
* @since 2.0.0
|
493 |
*
|
494 |
* @param string $business_name the shop's business name
|
495 |
*/
|
496 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
}
|
498 |
|
499 |
|
453 |
|
454 |
if ( ! is_string( $value ) ) {
|
455 |
|
456 |
+
$value = uniqid( sanitize_title( $this->get_business_name() ) . '-', false );
|
457 |
|
458 |
update_option( self::OPTION_EXTERNAL_BUSINESS_ID, $value );
|
459 |
}
|
482 |
*/
|
483 |
public function get_business_name() {
|
484 |
|
485 |
+
$business_name = get_bloginfo( 'name' );
|
486 |
|
487 |
/**
|
488 |
* Filters the shop's business name.
|
489 |
*
|
490 |
+
* This is passed to Facebook when connecting.
|
491 |
+
* Defaults to the site name. Should be non-empty, otherwise the site URL will be used as fallback.
|
492 |
*
|
493 |
* @since 2.0.0
|
494 |
*
|
495 |
* @param string $business_name the shop's business name
|
496 |
*/
|
497 |
+
$business_name = trim( (string) apply_filters( 'wc_facebook_connection_business_name', is_string( $business_name ) ? $business_name : '' ) );
|
498 |
+
|
499 |
+
if ( empty( $business_name ) ) {
|
500 |
+
$business_name = get_bloginfo( 'url' );
|
501 |
+
}
|
502 |
+
|
503 |
+
return html_entity_decode( $business_name, ENT_QUOTES, 'UTF-8' );
|
504 |
}
|
505 |
|
506 |
|
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.3.2
|
6 |
-
Stable tag: 2.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 |
= 2020.07.30 - version 2.0.0 =
|
43 |
* Tweak - Show Facebook options for virtual products and variations
|
44 |
* Tweak - Hide "Sync and show" option for virtual products and variations
|
3 |
Tags: facebook, shop, catalog, advertise, pixel, product
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.3.2
|
6 |
+
Stable tag: 2.0.1
|
7 |
Requires PHP: 5.6 or greater
|
8 |
MySQL: 5.6 or greater
|
9 |
License: GPLv2 or later
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 2020.08.17 - version 2.0.1 =
|
43 |
+
* Fix - Ensure the configured business name is never empty when connecting to Facebook
|
44 |
+
|
45 |
= 2020.07.30 - version 2.0.0 =
|
46 |
* Tweak - Show Facebook options for virtual products and variations
|
47 |
* Tweak - Hide "Sync and show" option for virtual products and variations
|