Skip to content

Commit

Permalink
Merge pull request #2645 from woocommerce/revert-2643-release/3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdreeg authored Oct 12, 2023
2 parents ef214db + b92a4eb commit 429a822
Show file tree
Hide file tree
Showing 23 changed files with 59 additions and 65 deletions.
3 changes: 0 additions & 3 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
*** Facebook for WooCommerce Changelog ***

= 3.1.0 - 2023-10-11 =
* Add - Advantage+ Shoppings Ads support in the Advertise tab.

= 3.0.34 - 2023-10-05 =
* Add - Filter the size of the Facebook product image.
* Fix - AddToCart duplication when other plugins clone cart.
Expand Down
2 changes: 1 addition & 1 deletion class-wc-facebookcommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public function get_commerce_handler() {
/**
* Gets a campaign handler for the given ASC campaign type
*
* @since 3.1.0
* @since x.x.x
*
* @param string $type The ASC campaign type
* @return WooCommerce\Facebook\AdvertiseASC ASC campaign handler
Expand Down
12 changes: 6 additions & 6 deletions facebook-commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ private function sync_facebook_products_using_background_processor() {
/**
* Updates the DB with the new data for the Advertise ASC entry
*
* @since 3.1.0
* @since x.x.x
*
* @param string $data
* @return bool
Expand All @@ -2146,7 +2146,7 @@ public function update_advertise_asc_saved_data( $data ) {
/**
* Updates the DB with the new data for the Advertise ASC entry. The input can be an array, which then is transformed to an encoded json string
*
* @since 3.1.0
* @since x.x.x
*
* @param array $data
*/
Expand All @@ -2158,7 +2158,7 @@ public function update_advertise_asc_information( $data ){
/**
* Updates the status for Advertise ASC campaign eligibility.
*
* @since 3.1.0
* @since x.x.x
*
* @param array $new_status
*/
Expand All @@ -2181,7 +2181,7 @@ public function ajax_fb_toggle_visibility() {
/**
* Gets the plain Advertise ASC data from the DB.
*
* @since 3.1.0
* @since x.x.x
*
* @return string
*/
Expand All @@ -2192,7 +2192,7 @@ public function get_advertise_asc_saved_data() {
/**
* Gets the saved status for Advertise ASC campaign eligibility.
*
* @since 3.1.0
* @since x.x.x
*
* @param array $data
*/
Expand All @@ -2203,7 +2203,7 @@ public function get_advertise_asc_status() {
/**
* Gets the json-decoded array of the Advertise ASC information stored in DB.
*
* @since 3.1.0
* @since x.x.x
*
* @return mixed
*/
Expand Down
4 changes: 2 additions & 2 deletions facebook-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* 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.
* Author: Facebook
* Author URI: https://www.facebook.com/
* Version: 3.1.0
* Version: 3.0.34
* Requires at least: 5.6
* Text Domain: facebook-for-woocommerce
* Tested up to: 6.3
Expand Down Expand Up @@ -44,7 +44,7 @@ class WC_Facebook_Loader {
/**
* @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
*/
const PLUGIN_VERSION = '3.1.0'; // WRCS: DEFINED_VERSION.
const PLUGIN_VERSION = '3.0.34'; // WRCS: DEFINED_VERSION.

// Minimum PHP version required by this plugin.
const MINIMUM_PHP_VERSION = '7.4.0';
Expand Down
8 changes: 4 additions & 4 deletions includes/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function( $name, $slug ) use ( $term ) {
* Retrieves the changeset for each campaign type and posts them to the backend.
* Makes sure that there is something to be sent.
*
* @since 3.1.0
* @since x.x.x
*
* @return string
*/
Expand Down Expand Up @@ -171,7 +171,7 @@ public function update_ad_status() {
/**
* Gets the Ad Preview for a given ad in different formats and merges the results.
*
* @since 3.1.0
* @since x.x.x
*
* @return string
*/
Expand Down Expand Up @@ -206,7 +206,7 @@ public function generate_ad_preview() {
/**
* Gets the Ad Preview for an ASC Campaign in different formats and merges the results.
*
* @since 3.1.0
* @since x.x.x
*
* @param string $asc_campaign ASC Campaign type.
* @return string
Expand All @@ -225,7 +225,7 @@ private function get_previews_and_merge ( $asc_campaign ){
/**
* Gets the Ad Preview for an ASC Campaign in a specific format.
*
* @since 3.1.0
* @since x.x.x
*
* @param string $asc_campaign ASC Campaign type.
* @param string $ad_format Ad Preview Format.
Expand Down
2 changes: 1 addition & 1 deletion includes/API/Ad/Create/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Creation request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Ad/Preview/Generation/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Preview request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Ad/Preview/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Preview request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Ad/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Generic response object for flows corresponding to Facebook Ad requests.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/AdAccount/Currency/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Account Currency request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Adset/Create/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Response object for Facebook Adset Creation request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Adset/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Generic response object for Facebook Adset request flows.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Adset/Update/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Adset Update request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Campaign/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Campaign Creation/Update request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
2 changes: 1 addition & 1 deletion includes/API/Insights/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Response object for Facebook Ad Campaign Insights request.
*
* @since 3.1.0
* @since x.x.x
*/
class Response extends ApiResponse {

Expand Down
18 changes: 9 additions & 9 deletions includes/Admin/Settings_Screens/Advertise.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private function add_hooks() {
/**
* Adds the WP hooks to be able to run the frontend
*
* @since 3.1.0
* @since x.x.x
*
*/
public function add_frontend_hooks(){
Expand Down Expand Up @@ -267,7 +267,7 @@ public function render() {
/**
* Renders the ASC Experimental view.
*
* @since 3.1.0
* @since x.x.x
*
*/
private function experimental_view_render() {
Expand All @@ -287,7 +287,7 @@ private function experimental_view_render() {
/**
* Generates the HTML DOM for a given dashboard.
*
* @since 3.1.0
* @since x.x.x
* @param string @type. Sets the input type. values: (new-buyers, retargeting)
* @param string @title. The title of the dashboard
* @param string @subtitle_row1. Row1 of the subtitle of the dashboard
Expand Down Expand Up @@ -358,7 +358,7 @@ private function render_dashboard( $type, $title, $subtitle_row1, $subtitle_row2
/**
* Checks whether the tool can show the experimental view or not
*
* @since 3.1.0
* @since x.x.x
*
* @return bool
*/
Expand All @@ -371,7 +371,7 @@ private function can_try_experimental_view() {
/**
* Creates the translated text including a link
*
* @since 3.1.0
* @since x.x.x
* @param string $pretext. Any text before the link text.
* @param string $link. The link url
* @param string $link_text. The text for the link
Expand All @@ -387,7 +387,7 @@ private function translate_with_link( $pretext, $link, $link_text, $rest_of_text
/**
* Tries to render the experimental view. If something fails, it shows the issue.
*
* @since 3.1.0
* @since x.x.x
*
* @return string
*/
Expand Down Expand Up @@ -518,7 +518,7 @@ private function try_render_experimental_view() {
/**
* Closes the open html tags in case of an exception.
*
* @since 3.1.0
* @since x.x.x
*
*/
private function remove_rendered_when_exception_happened() {
Expand All @@ -536,7 +536,7 @@ private function remove_rendered_when_exception_happened() {
/**
* Returns an escaped translation of the input text, in the realm of this plugin
*
* @since 3.1.0
* @since x.x.x
*
* @param string $text
* @returns string
Expand All @@ -549,7 +549,7 @@ private function get_escaped_translation( $text ) {
/**
* Creates the html elements needed for the LWI-E view.
*
* @since 3.1.0
* @since x.x.x
*
*/
private function render_lwi_view() {
Expand Down
2 changes: 1 addition & 1 deletion includes/AdvertiseASC/AscSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* - Retargeting
* campaigns.
*
* @since 3.1.0
* @since x.x.x
*/
class AscSelector {

Expand Down
Loading

0 comments on commit 429a822

Please sign in to comment.