Plugin Directory

Changeset 3135076


Ignore:
Timestamp:
08/13/2024 03:50:43 PM (16 months ago)
Author:
ecgan
Message:

Tagging version 3.2.7

Location:
facebook-for-woocommerce
Files:
66 edited
1 copied

Legend:

Unmodified
Added
Removed
  • facebook-for-woocommerce/tags/3.2.7/changelog.txt

    r3124108 r3135076  
    11*** Facebook for WooCommerce Changelog ***
     2
     3= 3.2.7 - 2024-08-13 =
     4* Dev - Updated `phpcs` ruleset.
     5* Fix - Update failing due to undefined constant error in Lifecycle.
     6* Tweak - WC 9.2 compatibility.
    27
    38= 3.2.6 - 2024-07-23 =
  • facebook-for-woocommerce/tags/3.2.7/facebook-for-woocommerce.php

    r3124108 r3135076  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.2.6
     14 * Version: 3.2.7
    1515 * Requires at least: 5.6
    1616 * Requires PHP: 7.4
     
    1919 * Tested up to: 6.6
    2020 * WC requires at least: 6.4
    21  * WC tested up to: 9.1
     21 * WC tested up to: 9.2
    2222 *
    2323 * @package FacebookCommerce
     
    5050     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    5151     */
    52     const PLUGIN_VERSION = '3.2.6'; // WRCS: DEFINED_VERSION.
     52    const PLUGIN_VERSION = '3.2.7'; // WRCS: DEFINED_VERSION.
    5353
    5454    // Minimum PHP version required by this plugin.
  • facebook-for-woocommerce/tags/3.2.7/i18n/languages/facebook-for-woocommerce.pot

    r3124108 r3135076  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.2.6\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.2.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-07-23T17:08:35+00:00\n"
     12"POT-Creation-Date: 2024-08-13T15:49:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    3939#: includes/Admin.php:1159
    4040#: includes/Admin/Settings.php:111
    41 #: includes/Admin/Settings.php:347
     41#: includes/Admin/Settings.php:349
    4242msgid "Facebook"
    4343msgstr ""
     
    427427msgstr ""
    428428
    429 #: includes/Admin/Product_Sets.php:168
     429#: includes/Admin/Product_Sets.php:173
    430430msgid "Map Facebook Product Set to WC Product Categories"
    431431msgstr ""
     
    459459msgstr ""
    460460
    461 #: includes/Admin/Settings.php:183
     461#: includes/Admin/Settings.php:185
    462462#: includes/Admin/Settings_Screens/Connection.php:35
    463463#: includes/Admin/Settings_Screens/Connection.php:36
     
    465465msgstr ""
    466466
    467 #: includes/Admin/Settings.php:186
     467#: includes/Admin/Settings.php:188
    468468#: includes/Admin/Settings_Screens/Product_Sync.php:42
    469469#: includes/Admin/Settings_Screens/Product_Sync.php:43
     
    473473msgstr ""
    474474
    475 #: includes/Admin/Settings.php:189
     475#: includes/Admin/Settings.php:191
    476476#: includes/Admin/Settings_Screens/Advertise.php:35
    477477#: includes/Admin/Settings_Screens/Advertise.php:36
     
    479479msgstr ""
    480480
    481 #: includes/Admin/Settings.php:254
     481#: includes/Admin/Settings.php:256
    482482msgid "You do not have permission to save these settings."
    483483msgstr ""
    484484
    485 #: includes/Admin/Settings.php:259
     485#: includes/Admin/Settings.php:261
    486486msgid "Your settings have been saved."
    487487msgstr ""
    488488
    489489#. translators: Placeholders: %s - user-friendly error message
    490 #: includes/Admin/Settings.php:264
     490#: includes/Admin/Settings.php:266
    491491msgid "Your settings could not be saved. %s"
    492492msgstr ""
     
    970970msgstr ""
    971971
    972 #: includes/ProductSync/ProductValidator.php:372
     972#: includes/ProductSync/ProductValidator.php:370
    973973msgid "If product is not simple, variable or variation it must have a price."
    974974msgstr ""
    975975
    976 #: includes/ProductSync/ProductValidator.php:398
     976#: includes/ProductSync/ProductValidator.php:396
    977977msgid "Product description is all capital letters. Please change the description to sentence case in order to allow synchronization of your product."
    978978msgstr ""
    979979
    980 #: includes/ProductSync/ProductValidator.php:401
     980#: includes/ProductSync/ProductValidator.php:399
    981981msgid "Product description is too long. Maximum allowed length is 5000 characters."
    982982msgstr ""
    983983
    984 #: includes/ProductSync/ProductValidator.php:419
     984#: includes/ProductSync/ProductValidator.php:417
    985985msgid "Product title is too long. Maximum allowed length is 150 characters."
    986986msgstr ""
    987987
    988 #: includes/ProductSync/ProductValidator.php:443
     988#: includes/ProductSync/ProductValidator.php:441
    989989msgid "Too many attributes selected for product. Use 4 or less."
    990990msgstr ""
     
    10421042msgstr ""
    10431043
    1044 #: includes/Utilities/DebugTools.php:95
     1044#: includes/Utilities/DebugTools.php:94
    10451045msgid "Cleared all Facebook settings!"
    10461046msgstr ""
    10471047
    1048 #: includes/Utilities/DebugTools.php:108
     1048#: includes/Utilities/DebugTools.php:106
    10491049msgid "Reset products Facebook settings job started!"
    10501050msgstr ""
    10511051
    1052 #: includes/Utilities/DebugTools.php:121
     1052#: includes/Utilities/DebugTools.php:118
    10531053msgid "Delete products from Facebook catalog job started!"
    10541054msgstr ""
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Catalog/Product_Group/Products/Read/Request.php

    r2842890 r3135076  
    5555        return 'ads_management';
    5656    }
    57 
    58 
    5957}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Catalog/Product_Group/Products/Read/Response.php

    r2842890 r3135076  
    4343        return $product_item_ids;
    4444    }
    45 
    46 
    4745}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Catalog/Product_Item/Find/Request.php

    r2842890 r3135076  
    6161        return array( 'fields' => 'id,product_group{id}' );
    6262    }
    63 
    64 
    6563}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Catalog/Send_Item_Updates/Request.php

    r2842890 r3135076  
    124124        );
    125125    }
    126 
    127 
    128126}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/FBE/Configuration/Read/Response.php

    r3079762 r3135076  
    1919     */
    2020    public function is_ig_shopping_enabled(): bool {
    21         return ! ! $this->response_data['ig_shopping']['enabled'] ?? false;
     21        return (bool) $this->response_data['ig_shopping']['enabled'] ?? false;
    2222    }
    2323
     
    2828     */
    2929    public function is_ig_cta_enabled(): bool {
    30         return ! ! $this->response_data['ig_cta']['enabled'];
     30        return (bool) $this->response_data['ig_cta']['enabled'];
    3131    }
    3232}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/FBE/Configuration/Update/Request.php

    r3079762 r3135076  
    5353        );
    5454    }
    55 
    56 
    5755}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Pixel/Events/Request.php

    r2842890 r3135076  
    9191        return apply_filters( 'wc_facebook_api_pixel_event_request_data', $data, $this );
    9292    }
    93 
    94 
    9593}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Request.php

    r2820041 r3135076  
    8282     */
    8383    public function mark_retry() {
    84         $this->retry_count++;
     84        ++$this->retry_count;
    8585    }
    8686
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Traits/Idempotent_Request.php

    r2842890 r3135076  
    4141        return $this->idempotency_key;
    4242    }
    43 
    44 
    4543}
  • facebook-for-woocommerce/tags/3.2.7/includes/API/Traits/Rate_Limited_Response.php

    r2842890 r3135076  
    119119        return ! empty( $usage_data['estimated_time_to_regain_access'] ) ? (int) $usage_data['estimated_time_to_regain_access'] : null;
    120120    }
    121 
    122 
    123121}
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Enhanced_Catalog_Attribute_Fields.php

    r2955347 r3135076  
    9090        $all_attributes             = $this->category_handler->get_attributes_with_fallback_to_parent_category( $category_id );
    9191        $all_attributes_with_values = array_map(
    92             function( $attribute ) use ( $category_id ) {
     92            function ( $attribute ) use ( $category_id ) {
    9393                return array_merge( $attribute, array( 'value' => $this->get_value( $attribute['key'], $category_id ) ) );
    9494            },
     
    9797        $recommended_attributes     = array_filter(
    9898            $all_attributes_with_values,
    99             function( $attr ) {
     99            function ( $attr ) {
    100100                return $attr['recommended'];
    101101            }
     
    103103        $optional_attributes        = array_filter(
    104104            $all_attributes_with_values,
    105             function( $attr ) {
     105            function ( $attr ) {
    106106                return ! $attr['recommended'];
    107107            }
     
    118118                    $this->extract_attribute( $optional_attributes, 'gender' ),
    119119                ),
    120                 function( $attr ) {
     120                function ( $attr ) {
    121121                    return ! is_null( $attr );
    122122                }
     
    267267                $this->render_text_field( $attr_id, $attribute, $placeholder );
    268268        }
    269 
    270269    }
    271270
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Notes/SettingsMoved.php

    r2826571 r3135076  
    1212defined( 'ABSPATH' ) || exit;
    1313
    14 use \Automattic\WooCommerce\Admin\Notes\Note;
    15 use \Automattic\WooCommerce\Admin\Notes\NoteTraits;
     14use Automattic\WooCommerce\Admin\Notes\Note;
     15use Automattic\WooCommerce\Admin\Notes\NoteTraits;
    1616
    1717/**
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Product_Categories.php

    r2946100 r3135076  
    272272        if (
    273273            empty( $category_id ) ||
    274             $category_handler->is_category( $category_id ) &&
    275             $category_handler->is_root_category( $category_id )
     274            ( $category_handler->is_category( $category_id ) &&
     275            $category_handler->is_root_category( $category_id ) )
    276276        ) {
    277277            // show nothing
     
    315315        if (
    316316            empty( $category_id ) ||
    317             $category_handler->is_category( $category_id ) &&
    318             $category_handler->is_root_category( $category_id )
     317            ( $category_handler->is_category( $category_id ) &&
     318            $category_handler->is_root_category( $category_id ) )
    319319        ) {
    320320            // show nothing
     
    378378
    379379        \WooCommerce\Facebook\Product_Categories::update_google_product_category_id( $term_id, $google_product_category_id );
    380         $this->save_enhanced_catalog_attributes( $term_id, $tt_id, $taxonomy );
     380        $this->save_enhanced_catalog_attributes( $term_id );
    381381
    382382        $term = get_term( $term_id, $taxonomy );
     
    424424     * @since 2.1.0
    425425     *
    426      * @param int    $term_id term ID.
    427      * @param int    $tt_id term taxonomy ID.
    428      * @param string $taxonomy Taxonomy slug.
    429      */
    430     public function save_enhanced_catalog_attributes( $term_id, $tt_id, $taxonomy ) {
     426     * @param int $term_id term ID.
     427     */
     428    public function save_enhanced_catalog_attributes( $term_id ) {
    431429        $enhanced_catalog_attributes = \WooCommerce\Facebook\Products::get_enhanced_catalog_attributes_from_request();
    432430
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Product_Sets.php

    r2906893 r3135076  
    115115     * @param int $tt_id Term taxonomy ID.
    116116     */
    117     public function save_custom_field( $term_id, $tt_id ) {
     117    public function save_custom_field( $term_id, $tt_id ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
    118118        $wc_product_cats = empty( $_POST[ $this->categories_field ] ) ? '' : wc_clean( wp_unslash( $_POST[ $this->categories_field ] ) ); //phpcs:ignore
    119119        if ( ! empty( $wc_product_cats ) ) {
    120120            $wc_product_cats = array_map(
    121                 function( $item ) {
     121                function ( $item ) {
    122122                    return absint( $item );
    123123                },
     
    150150    protected function get_field( $term_id = '' ) {
    151151        $saved_items  = get_term_meta( $term_id, $this->categories_field, true );
    152         $product_cats = get_terms( 'product_cat', array( 'hide_empty' => 0 ) );
     152        $product_cats = get_terms(
     153            array(
     154                'taxonomy'   => 'product_cat',
     155                'hide_empty' => false,
     156            )
     157        );
    153158        ?>
    154159        <div class="select2 updating-message"><p></p></div>
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Products.php

    r2842890 r3135076  
    6868        if (
    6969            empty( $category_id ) ||
    70             $category_handler->is_category( $category_id ) &&
    71             $category_handler->is_root_category( $category_id )
     70            ( $category_handler->is_category( $category_id ) &&
     71            $category_handler->is_root_category( $category_id ) )
    7272        ) {
    7373            // show nothing
     
    171171    public static function get_available_product_attribute_names( \WC_Product $product ) {
    172172        return array_map(
    173             function( $attribute ) use ( $product ) {
     173            function ( $attribute ) use ( $product ) {
    174174                return wc_attribute_label( $attribute->get_name(), $product );
    175175            },
     
    211211            <p>
    212212            <?php
    213             echo sprintf(
     213            printf(
    214214                /* translators: Placeholders %1$s - strong opening tag, %2$s - strong closing tag */
    215215                esc_html__( 'To sell this product on Instagram, at least one variation must be synced to Facebook. You can control variation sync on the %1$sVariations%2$s tab with the %1$sFacebook Sync%2$s setting.', 'facebook-for-woocommerce' ),
  • facebook-for-woocommerce/tags/3.2.7/includes/Admin/Settings.php

    r3079762 r3135076  
    178178                __( 'Facebook for WooCommerce', 'facebook-for-woocommerce' ),
    179179            );
     180            //phpcs:ignore WordPress.Security.NonceVerification.Recommended
    180181            if ( ! empty( $_GET['tab'] ) ) {
     182                //phpcs:ignore WordPress.Security.NonceVerification.Recommended
    181183                switch ( $_GET['tab'] ) {
    182184                    case Connection::ID:
     
    303305        $screens = array_filter(
    304306            $screens,
    305             function( $value ) {
     307            function ( $value ) {
    306308                return $value instanceof Abstract_Settings_Screen;
    307309            }
     
    363365                )
    364366            );
    365             $order++;
     367            ++$order;
    366368        }
    367369    }
  • facebook-for-woocommerce/tags/3.2.7/includes/ExternalVersionUpdate/Update.php

    r2861627 r3135076  
    102102        }
    103103    }
    104 
    105104}
  • facebook-for-woocommerce/tags/3.2.7/includes/Framework/Api/Base.php

    r2846411 r3135076  
    681681            return;
    682682        }
     683        //phpcs:ignore: WordPress.WP.AlternativeFunctions.curl_curl_setopt
    683684        curl_setopt( $handle, CURLOPT_SSLVERSION, 6 );
    684685    }
  • facebook-for-woocommerce/tags/3.2.7/includes/Framework/Api/Response.php

    r2846411 r3135076  
    3131     */
    3232    public function to_string_safe();
    33 
    3433}
  • facebook-for-woocommerce/tags/3.2.7/includes/Framework/Utilities/BackgroundJobHandler.php

    r3093783 r3135076  
    657657                $this->process_item( $item, $job );
    658658
    659                 $processed++;
    660                 $job->progress++;
     659                ++$processed;
     660                ++$job->progress;
    661661
    662662                // update job progress
  • facebook-for-woocommerce/tags/3.2.7/includes/Jobs/CleanupSkyvergeFrameworkJobOptions.php

    r2820041 r3135076  
    5858        );
    5959    }
    60 
    6160}
  • facebook-for-woocommerce/tags/3.2.7/includes/Jobs/DeleteProductsFromFBCatalog.php

    r2826571 r3135076  
    1717class DeleteProductsFromFBCatalog extends AbstractChainedJob {
    1818
    19     use BatchQueryOffset, LoggingTrait;
     19    use BatchQueryOffset;
     20    use LoggingTrait;
    2021
    2122    /**
     
    5859
    5960        return array_map( 'intval', $products );
    60 
    6161    }
    6262
     
    126126        return 25;
    127127    }
    128 
    129128}
  • facebook-for-woocommerce/tags/3.2.7/includes/Jobs/ResetAllProductsFBSettings.php

    r2826571 r3135076  
    1717class ResetAllProductsFBSettings extends AbstractChainedJob {
    1818
    19     use BatchQueryOffset, LoggingTrait;
     19    use BatchQueryOffset;
     20    use LoggingTrait;
    2021
    2122    /**
     
    5859
    5960        return array_map( 'intval', $products );
    60 
    6161    }
    6262
     
    117117        return 25;
    118118    }
    119 
    120119}
  • facebook-for-woocommerce/tags/3.2.7/includes/Lifecycle.php

    r3102234 r3135076  
    225225                'messenger_greeting'            => self::SETTING_MESSENGER_GREETING,
    226226                'messenger_color_hex'           => self::SETTING_MESSENGER_COLOR_HEX,
    227                 'enable_debug_mode'             => self::SETTING_ENABLE_DEBUG_MODE,
     227                'enable_debug_mode'             => \WC_Facebookcommerce_Integration::SETTING_ENABLE_DEBUG_MODE,
    228228            );
    229229            foreach ( $settings_map as $old_name => $new_name ) {
  • facebook-for-woocommerce/tags/3.2.7/includes/ProductSync/ProductValidator.php

    r2955347 r3135076  
    348348            // Variable product has no variations with sync enabled so it shouldn't be synced.
    349349            throw $invalid_exception;
    350         } else {
    351             if ( 'no' === $this->product->get_meta( self::SYNC_ENABLED_META_KEY ) ) {
     350        } elseif ( 'no' === $this->product->get_meta( self::SYNC_ENABLED_META_KEY ) ) {
    352351                throw $invalid_exception;
    353             }
    354352        }
    355353    }
     
    444442        }
    445443    }
    446 
    447444}
  • facebook-for-woocommerce/tags/3.2.7/includes/Products/Sync/Background.php

    r3016816 r3135076  
    119119            }
    120120
    121             $processed++;
    122             $job->progress++;
     121            ++$processed;
     122            ++$job->progress;
    123123            // update job progress
    124124            $job = $this->update_job( $job );
  • facebook-for-woocommerce/tags/3.2.7/includes/Utilities/DebugTools.php

    r2868994 r3135076  
    7979
    8080        return __( 'Background sync jobs have been deleted.', 'facebook-for-woocommerce' );
    81 
    8281    }
    8382
     
    9493
    9594        return esc_html__( 'Cleared all Facebook settings!', 'facebook-for-woocommerce' );
    96 
    9795    }
    9896
     
    107105        facebook_for_woocommerce()->job_manager->reset_all_product_fb_settings->queue_start();
    108106        return esc_html__( 'Reset products Facebook settings job started!', 'facebook-for-woocommerce' );
    109 
    110107    }
    111108
     
    121118        return esc_html__( 'Delete products from Facebook catalog job started!', 'facebook-for-woocommerce' );
    122119    }
    123 
    124120}
  • facebook-for-woocommerce/tags/3.2.7/includes/fbwpml.php

    r2955347 r3135076  
    190190        }
    191191    }
    192 
    193 
    194192}
  • facebook-for-woocommerce/tags/3.2.7/readme.txt

    r3124108 r3135076  
    44Requires at least: 5.6
    55Tested up to: 6.6
    6 Stable tag: 3.2.6
     6Stable tag: 3.2.7
    77Requires PHP: 7.4
    88MySQL: 5.6 or greater
     
    4040
    4141== Changelog ==
     42
     43= 3.2.7 - 2024-08-13 =
     44* Dev - Updated `phpcs` ruleset.
     45* Fix - Update failing due to undefined constant error in Lifecycle.
     46* Tweak - WC 9.2 compatibility.
    4247
    4348= 3.2.6 - 2024-07-23 =
  • facebook-for-woocommerce/tags/3.2.7/vendor/composer/installed.php

    r3124108 r3135076  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.2.6',
    5         'version' => 'dev-release/3.2.6',
    6         'reference' => '60562354cd8bdbe155c140b08d15a67e37f9a7f9',
     4        'pretty_version' => 'dev-release/3.2.7',
     5        'version' => 'dev-release/3.2.7',
     6        'reference' => '8974daa40f67f3cc6200cec987be7f48f42bde98',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'facebookincubator/facebook-for-woocommerce' => array(
    23             'pretty_version' => 'dev-release/3.2.6',
    24             'version' => 'dev-release/3.2.6',
    25             'reference' => '60562354cd8bdbe155c140b08d15a67e37f9a7f9',
     23            'pretty_version' => 'dev-release/3.2.7',
     24            'version' => 'dev-release/3.2.7',
     25            'reference' => '8974daa40f67f3cc6200cec987be7f48f42bde98',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • facebook-for-woocommerce/trunk/changelog.txt

    r3124108 r3135076  
    11*** Facebook for WooCommerce Changelog ***
     2
     3= 3.2.7 - 2024-08-13 =
     4* Dev - Updated `phpcs` ruleset.
     5* Fix - Update failing due to undefined constant error in Lifecycle.
     6* Tweak - WC 9.2 compatibility.
    27
    38= 3.2.6 - 2024-07-23 =
  • facebook-for-woocommerce/trunk/facebook-for-woocommerce.php

    r3124108 r3135076  
    1212 * Author: Facebook
    1313 * Author URI: https://www.facebook.com/
    14  * Version: 3.2.6
     14 * Version: 3.2.7
    1515 * Requires at least: 5.6
    1616 * Requires PHP: 7.4
     
    1919 * Tested up to: 6.6
    2020 * WC requires at least: 6.4
    21  * WC tested up to: 9.1
     21 * WC tested up to: 9.2
    2222 *
    2323 * @package FacebookCommerce
     
    5050     * @var string the plugin version. This must be in the main plugin file to be automatically bumped by Woorelease.
    5151     */
    52     const PLUGIN_VERSION = '3.2.6'; // WRCS: DEFINED_VERSION.
     52    const PLUGIN_VERSION = '3.2.7'; // WRCS: DEFINED_VERSION.
    5353
    5454    // Minimum PHP version required by this plugin.
  • facebook-for-woocommerce/trunk/i18n/languages/facebook-for-woocommerce.pot

    r3124108 r3135076  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Facebook for WooCommerce 3.2.6\n"
     5"Project-Id-Version: Facebook for WooCommerce 3.2.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/facebook-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-07-23T17:08:35+00:00\n"
     12"POT-Creation-Date: 2024-08-13T15:49:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    3939#: includes/Admin.php:1159
    4040#: includes/Admin/Settings.php:111
    41 #: includes/Admin/Settings.php:347
     41#: includes/Admin/Settings.php:349
    4242msgid "Facebook"
    4343msgstr ""
     
    427427msgstr ""
    428428
    429 #: includes/Admin/Product_Sets.php:168
     429#: includes/Admin/Product_Sets.php:173
    430430msgid "Map Facebook Product Set to WC Product Categories"
    431431msgstr ""
     
    459459msgstr ""
    460460
    461 #: includes/Admin/Settings.php:183
     461#: includes/Admin/Settings.php:185
    462462#: includes/Admin/Settings_Screens/Connection.php:35
    463463#: includes/Admin/Settings_Screens/Connection.php:36
     
    465465msgstr ""
    466466
    467 #: includes/Admin/Settings.php:186
     467#: includes/Admin/Settings.php:188
    468468#: includes/Admin/Settings_Screens/Product_Sync.php:42
    469469#: includes/Admin/Settings_Screens/Product_Sync.php:43
     
    473473msgstr ""
    474474
    475 #: includes/Admin/Settings.php:189
     475#: includes/Admin/Settings.php:191
    476476#: includes/Admin/Settings_Screens/Advertise.php:35
    477477#: includes/Admin/Settings_Screens/Advertise.php:36
     
    479479msgstr ""
    480480
    481 #: includes/Admin/Settings.php:254
     481#: includes/Admin/Settings.php:256
    482482msgid "You do not have permission to save these settings."
    483483msgstr ""
    484484
    485 #: includes/Admin/Settings.php:259
     485#: includes/Admin/Settings.php:261
    486486msgid "Your settings have been saved."
    487487msgstr ""
    488488
    489489#. translators: Placeholders: %s - user-friendly error message
    490 #: includes/Admin/Settings.php:264
     490#: includes/Admin/Settings.php:266
    491491msgid "Your settings could not be saved. %s"
    492492msgstr ""
     
    970970msgstr ""
    971971
    972 #: includes/ProductSync/ProductValidator.php:372
     972#: includes/ProductSync/ProductValidator.php:370
    973973msgid "If product is not simple, variable or variation it must have a price."
    974974msgstr ""
    975975
    976 #: includes/ProductSync/ProductValidator.php:398
     976#: includes/ProductSync/ProductValidator.php:396
    977977msgid "Product description is all capital letters. Please change the description to sentence case in order to allow synchronization of your product."
    978978msgstr ""
    979979
    980 #: includes/ProductSync/ProductValidator.php:401
     980#: includes/ProductSync/ProductValidator.php:399
    981981msgid "Product description is too long. Maximum allowed length is 5000 characters."
    982982msgstr ""
    983983
    984 #: includes/ProductSync/ProductValidator.php:419
     984#: includes/ProductSync/ProductValidator.php:417
    985985msgid "Product title is too long. Maximum allowed length is 150 characters."
    986986msgstr ""
    987987
    988 #: includes/ProductSync/ProductValidator.php:443
     988#: includes/ProductSync/ProductValidator.php:441
    989989msgid "Too many attributes selected for product. Use 4 or less."
    990990msgstr ""
     
    10421042msgstr ""
    10431043
    1044 #: includes/Utilities/DebugTools.php:95
     1044#: includes/Utilities/DebugTools.php:94
    10451045msgid "Cleared all Facebook settings!"
    10461046msgstr ""
    10471047
    1048 #: includes/Utilities/DebugTools.php:108
     1048#: includes/Utilities/DebugTools.php:106
    10491049msgid "Reset products Facebook settings job started!"
    10501050msgstr ""
    10511051
    1052 #: includes/Utilities/DebugTools.php:121
     1052#: includes/Utilities/DebugTools.php:118
    10531053msgid "Delete products from Facebook catalog job started!"
    10541054msgstr ""
  • facebook-for-woocommerce/trunk/includes/API/Catalog/Product_Group/Products/Read/Request.php

    r2842890 r3135076  
    5555        return 'ads_management';
    5656    }
    57 
    58 
    5957}
  • facebook-for-woocommerce/trunk/includes/API/Catalog/Product_Group/Products/Read/Response.php

    r2842890 r3135076  
    4343        return $product_item_ids;
    4444    }
    45 
    46 
    4745}
  • facebook-for-woocommerce/trunk/includes/API/Catalog/Product_Item/Find/Request.php

    r2842890 r3135076  
    6161        return array( 'fields' => 'id,product_group{id}' );
    6262    }
    63 
    64 
    6563}
  • facebook-for-woocommerce/trunk/includes/API/Catalog/Send_Item_Updates/Request.php

    r2842890 r3135076  
    124124        );
    125125    }
    126 
    127 
    128126}
  • facebook-for-woocommerce/trunk/includes/API/FBE/Configuration/Read/Response.php

    r3079762 r3135076  
    1919     */
    2020    public function is_ig_shopping_enabled(): bool {
    21         return ! ! $this->response_data['ig_shopping']['enabled'] ?? false;
     21        return (bool) $this->response_data['ig_shopping']['enabled'] ?? false;
    2222    }
    2323
     
    2828     */
    2929    public function is_ig_cta_enabled(): bool {
    30         return ! ! $this->response_data['ig_cta']['enabled'];
     30        return (bool) $this->response_data['ig_cta']['enabled'];
    3131    }
    3232}
  • facebook-for-woocommerce/trunk/includes/API/FBE/Configuration/Update/Request.php

    r3079762 r3135076  
    5353        );
    5454    }
    55 
    56 
    5755}
  • facebook-for-woocommerce/trunk/includes/API/Pixel/Events/Request.php

    r2842890 r3135076  
    9191        return apply_filters( 'wc_facebook_api_pixel_event_request_data', $data, $this );
    9292    }
    93 
    94 
    9593}
  • facebook-for-woocommerce/trunk/includes/API/Request.php

    r2820041 r3135076  
    8282     */
    8383    public function mark_retry() {
    84         $this->retry_count++;
     84        ++$this->retry_count;
    8585    }
    8686
  • facebook-for-woocommerce/trunk/includes/API/Traits/Idempotent_Request.php

    r2842890 r3135076  
    4141        return $this->idempotency_key;
    4242    }
    43 
    44 
    4543}
  • facebook-for-woocommerce/trunk/includes/API/Traits/Rate_Limited_Response.php

    r2842890 r3135076  
    119119        return ! empty( $usage_data['estimated_time_to_regain_access'] ) ? (int) $usage_data['estimated_time_to_regain_access'] : null;
    120120    }
    121 
    122 
    123121}
  • facebook-for-woocommerce/trunk/includes/Admin/Enhanced_Catalog_Attribute_Fields.php

    r2955347 r3135076  
    9090        $all_attributes             = $this->category_handler->get_attributes_with_fallback_to_parent_category( $category_id );
    9191        $all_attributes_with_values = array_map(
    92             function( $attribute ) use ( $category_id ) {
     92            function ( $attribute ) use ( $category_id ) {
    9393                return array_merge( $attribute, array( 'value' => $this->get_value( $attribute['key'], $category_id ) ) );
    9494            },
     
    9797        $recommended_attributes     = array_filter(
    9898            $all_attributes_with_values,
    99             function( $attr ) {
     99            function ( $attr ) {
    100100                return $attr['recommended'];
    101101            }
     
    103103        $optional_attributes        = array_filter(
    104104            $all_attributes_with_values,
    105             function( $attr ) {
     105            function ( $attr ) {
    106106                return ! $attr['recommended'];
    107107            }
     
    118118                    $this->extract_attribute( $optional_attributes, 'gender' ),
    119119                ),
    120                 function( $attr ) {
     120                function ( $attr ) {
    121121                    return ! is_null( $attr );
    122122                }
     
    267267                $this->render_text_field( $attr_id, $attribute, $placeholder );
    268268        }
    269 
    270269    }
    271270
  • facebook-for-woocommerce/trunk/includes/Admin/Notes/SettingsMoved.php

    r2826571 r3135076  
    1212defined( 'ABSPATH' ) || exit;
    1313
    14 use \Automattic\WooCommerce\Admin\Notes\Note;
    15 use \Automattic\WooCommerce\Admin\Notes\NoteTraits;
     14use Automattic\WooCommerce\Admin\Notes\Note;
     15use Automattic\WooCommerce\Admin\Notes\NoteTraits;
    1616
    1717/**
  • facebook-for-woocommerce/trunk/includes/Admin/Product_Categories.php

    r2946100 r3135076  
    272272        if (
    273273            empty( $category_id ) ||
    274             $category_handler->is_category( $category_id ) &&
    275             $category_handler->is_root_category( $category_id )
     274            ( $category_handler->is_category( $category_id ) &&
     275            $category_handler->is_root_category( $category_id ) )
    276276        ) {
    277277            // show nothing
     
    315315        if (
    316316            empty( $category_id ) ||
    317             $category_handler->is_category( $category_id ) &&
    318             $category_handler->is_root_category( $category_id )
     317            ( $category_handler->is_category( $category_id ) &&
     318            $category_handler->is_root_category( $category_id ) )
    319319        ) {
    320320            // show nothing
     
    378378
    379379        \WooCommerce\Facebook\Product_Categories::update_google_product_category_id( $term_id, $google_product_category_id );
    380         $this->save_enhanced_catalog_attributes( $term_id, $tt_id, $taxonomy );
     380        $this->save_enhanced_catalog_attributes( $term_id );
    381381
    382382        $term = get_term( $term_id, $taxonomy );
     
    424424     * @since 2.1.0
    425425     *
    426      * @param int    $term_id term ID.
    427      * @param int    $tt_id term taxonomy ID.
    428      * @param string $taxonomy Taxonomy slug.
    429      */
    430     public function save_enhanced_catalog_attributes( $term_id, $tt_id, $taxonomy ) {
     426     * @param int $term_id term ID.
     427     */
     428    public function save_enhanced_catalog_attributes( $term_id ) {
    431429        $enhanced_catalog_attributes = \WooCommerce\Facebook\Products::get_enhanced_catalog_attributes_from_request();
    432430
  • facebook-for-woocommerce/trunk/includes/Admin/Product_Sets.php

    r2906893 r3135076  
    115115     * @param int $tt_id Term taxonomy ID.
    116116     */
    117     public function save_custom_field( $term_id, $tt_id ) {
     117    public function save_custom_field( $term_id, $tt_id ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
    118118        $wc_product_cats = empty( $_POST[ $this->categories_field ] ) ? '' : wc_clean( wp_unslash( $_POST[ $this->categories_field ] ) ); //phpcs:ignore
    119119        if ( ! empty( $wc_product_cats ) ) {
    120120            $wc_product_cats = array_map(
    121                 function( $item ) {
     121                function ( $item ) {
    122122                    return absint( $item );
    123123                },
     
    150150    protected function get_field( $term_id = '' ) {
    151151        $saved_items  = get_term_meta( $term_id, $this->categories_field, true );
    152         $product_cats = get_terms( 'product_cat', array( 'hide_empty' => 0 ) );
     152        $product_cats = get_terms(
     153            array(
     154                'taxonomy'   => 'product_cat',
     155                'hide_empty' => false,
     156            )
     157        );
    153158        ?>
    154159        <div class="select2 updating-message"><p></p></div>
  • facebook-for-woocommerce/trunk/includes/Admin/Products.php

    r2842890 r3135076  
    6868        if (
    6969            empty( $category_id ) ||
    70             $category_handler->is_category( $category_id ) &&
    71             $category_handler->is_root_category( $category_id )
     70            ( $category_handler->is_category( $category_id ) &&
     71            $category_handler->is_root_category( $category_id ) )
    7272        ) {
    7373            // show nothing
     
    171171    public static function get_available_product_attribute_names( \WC_Product $product ) {
    172172        return array_map(
    173             function( $attribute ) use ( $product ) {
     173            function ( $attribute ) use ( $product ) {
    174174                return wc_attribute_label( $attribute->get_name(), $product );
    175175            },
     
    211211            <p>
    212212            <?php
    213             echo sprintf(
     213            printf(
    214214                /* translators: Placeholders %1$s - strong opening tag, %2$s - strong closing tag */
    215215                esc_html__( 'To sell this product on Instagram, at least one variation must be synced to Facebook. You can control variation sync on the %1$sVariations%2$s tab with the %1$sFacebook Sync%2$s setting.', 'facebook-for-woocommerce' ),
  • facebook-for-woocommerce/trunk/includes/Admin/Settings.php

    r3079762 r3135076  
    178178                __( 'Facebook for WooCommerce', 'facebook-for-woocommerce' ),
    179179            );
     180            //phpcs:ignore WordPress.Security.NonceVerification.Recommended
    180181            if ( ! empty( $_GET['tab'] ) ) {
     182                //phpcs:ignore WordPress.Security.NonceVerification.Recommended
    181183                switch ( $_GET['tab'] ) {
    182184                    case Connection::ID:
     
    303305        $screens = array_filter(
    304306            $screens,
    305             function( $value ) {
     307            function ( $value ) {
    306308                return $value instanceof Abstract_Settings_Screen;
    307309            }
     
    363365                )
    364366            );
    365             $order++;
     367            ++$order;
    366368        }
    367369    }
  • facebook-for-woocommerce/trunk/includes/ExternalVersionUpdate/Update.php

    r2861627 r3135076  
    102102        }
    103103    }
    104 
    105104}
  • facebook-for-woocommerce/trunk/includes/Framework/Api/Base.php

    r2846411 r3135076  
    681681            return;
    682682        }
     683        //phpcs:ignore: WordPress.WP.AlternativeFunctions.curl_curl_setopt
    683684        curl_setopt( $handle, CURLOPT_SSLVERSION, 6 );
    684685    }
  • facebook-for-woocommerce/trunk/includes/Framework/Api/Response.php

    r2846411 r3135076  
    3131     */
    3232    public function to_string_safe();
    33 
    3433}
  • facebook-for-woocommerce/trunk/includes/Framework/Utilities/BackgroundJobHandler.php

    r3093783 r3135076  
    657657                $this->process_item( $item, $job );
    658658
    659                 $processed++;
    660                 $job->progress++;
     659                ++$processed;
     660                ++$job->progress;
    661661
    662662                // update job progress
  • facebook-for-woocommerce/trunk/includes/Jobs/CleanupSkyvergeFrameworkJobOptions.php

    r2820041 r3135076  
    5858        );
    5959    }
    60 
    6160}
  • facebook-for-woocommerce/trunk/includes/Jobs/DeleteProductsFromFBCatalog.php

    r2826571 r3135076  
    1717class DeleteProductsFromFBCatalog extends AbstractChainedJob {
    1818
    19     use BatchQueryOffset, LoggingTrait;
     19    use BatchQueryOffset;
     20    use LoggingTrait;
    2021
    2122    /**
     
    5859
    5960        return array_map( 'intval', $products );
    60 
    6161    }
    6262
     
    126126        return 25;
    127127    }
    128 
    129128}
  • facebook-for-woocommerce/trunk/includes/Jobs/ResetAllProductsFBSettings.php

    r2826571 r3135076  
    1717class ResetAllProductsFBSettings extends AbstractChainedJob {
    1818
    19     use BatchQueryOffset, LoggingTrait;
     19    use BatchQueryOffset;
     20    use LoggingTrait;
    2021
    2122    /**
     
    5859
    5960        return array_map( 'intval', $products );
    60 
    6161    }
    6262
     
    117117        return 25;
    118118    }
    119 
    120119}
  • facebook-for-woocommerce/trunk/includes/Lifecycle.php

    r3102234 r3135076  
    225225                'messenger_greeting'            => self::SETTING_MESSENGER_GREETING,
    226226                'messenger_color_hex'           => self::SETTING_MESSENGER_COLOR_HEX,
    227                 'enable_debug_mode'             => self::SETTING_ENABLE_DEBUG_MODE,
     227                'enable_debug_mode'             => \WC_Facebookcommerce_Integration::SETTING_ENABLE_DEBUG_MODE,
    228228            );
    229229            foreach ( $settings_map as $old_name => $new_name ) {
  • facebook-for-woocommerce/trunk/includes/ProductSync/ProductValidator.php

    r2955347 r3135076  
    348348            // Variable product has no variations with sync enabled so it shouldn't be synced.
    349349            throw $invalid_exception;
    350         } else {
    351             if ( 'no' === $this->product->get_meta( self::SYNC_ENABLED_META_KEY ) ) {
     350        } elseif ( 'no' === $this->product->get_meta( self::SYNC_ENABLED_META_KEY ) ) {
    352351                throw $invalid_exception;
    353             }
    354352        }
    355353    }
     
    444442        }
    445443    }
    446 
    447444}
  • facebook-for-woocommerce/trunk/includes/Products/Sync/Background.php

    r3016816 r3135076  
    119119            }
    120120
    121             $processed++;
    122             $job->progress++;
     121            ++$processed;
     122            ++$job->progress;
    123123            // update job progress
    124124            $job = $this->update_job( $job );
  • facebook-for-woocommerce/trunk/includes/Utilities/DebugTools.php

    r2868994 r3135076  
    7979
    8080        return __( 'Background sync jobs have been deleted.', 'facebook-for-woocommerce' );
    81 
    8281    }
    8382
     
    9493
    9594        return esc_html__( 'Cleared all Facebook settings!', 'facebook-for-woocommerce' );
    96 
    9795    }
    9896
     
    107105        facebook_for_woocommerce()->job_manager->reset_all_product_fb_settings->queue_start();
    108106        return esc_html__( 'Reset products Facebook settings job started!', 'facebook-for-woocommerce' );
    109 
    110107    }
    111108
     
    121118        return esc_html__( 'Delete products from Facebook catalog job started!', 'facebook-for-woocommerce' );
    122119    }
    123 
    124120}
  • facebook-for-woocommerce/trunk/includes/fbwpml.php

    r2955347 r3135076  
    190190        }
    191191    }
    192 
    193 
    194192}
  • facebook-for-woocommerce/trunk/readme.txt

    r3124108 r3135076  
    44Requires at least: 5.6
    55Tested up to: 6.6
    6 Stable tag: 3.2.6
     6Stable tag: 3.2.7
    77Requires PHP: 7.4
    88MySQL: 5.6 or greater
     
    4040
    4141== Changelog ==
     42
     43= 3.2.7 - 2024-08-13 =
     44* Dev - Updated `phpcs` ruleset.
     45* Fix - Update failing due to undefined constant error in Lifecycle.
     46* Tweak - WC 9.2 compatibility.
    4247
    4348= 3.2.6 - 2024-07-23 =
  • facebook-for-woocommerce/trunk/vendor/composer/installed.php

    r3124108 r3135076  
    22    'root' => array(
    33        'name' => 'facebookincubator/facebook-for-woocommerce',
    4         'pretty_version' => 'dev-release/3.2.6',
    5         'version' => 'dev-release/3.2.6',
    6         'reference' => '60562354cd8bdbe155c140b08d15a67e37f9a7f9',
     4        'pretty_version' => 'dev-release/3.2.7',
     5        'version' => 'dev-release/3.2.7',
     6        'reference' => '8974daa40f67f3cc6200cec987be7f48f42bde98',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'facebookincubator/facebook-for-woocommerce' => array(
    23             'pretty_version' => 'dev-release/3.2.6',
    24             'version' => 'dev-release/3.2.6',
    25             'reference' => '60562354cd8bdbe155c140b08d15a67e37f9a7f9',
     23            'pretty_version' => 'dev-release/3.2.7',
     24            'version' => 'dev-release/3.2.7',
     25            'reference' => '8974daa40f67f3cc6200cec987be7f48f42bde98',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.