Plugin Directory

Changeset 2944593


Ignore:
Timestamp:
07/28/2023 11:27:22 AM (3 years ago)
Author:
SkyVerge
Message:

Committing 2.10.0 to trunk

Location:
woocommerce-extra-product-sorting-options/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-extra-product-sorting-options/trunk/i18n/languages/woocommerce-extra-product-sorting-options.pot

    r2764254 r2944593  
    1 # Copyright (C) 2022 SkyVerge
     1# Copyright (C) 2023 SkyVerge
    22# This file is distributed under the GNU General Public License v3.0.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Extra Product Sorting Options for WooCommerce 2.9.1\n"
     5"Project-Id-Version: Extra Product Sorting Options for WooCommerce 2.10.0\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/woocommerce-extra-product-sorting-"
    88"options\n"
    9 "POT-Creation-Date: 2022-08-01 03:31:54+00:00\n"
     9"POT-Creation-Date: 2023-07-28 11:26:57+00:00\n"
    1010"MIME-Version: 1.0\n"
    1111"Content-Type: text/plain; charset=utf-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
     13"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
    1414"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1515"Language-Team: LANGUAGE <LL@li.org>\n"
    1616
    17 #: woocommerce-extra-product-sorting-options.php:149
     17#: woocommerce-extra-product-sorting-options.php:150
    1818msgid "New Default Sorting Label"
    1919msgstr ""
    2020
    21 #: woocommerce-extra-product-sorting-options.php:150
     21#: woocommerce-extra-product-sorting-options.php:151
    2222msgid ""
    2323"If desired, enter a new name for the default sorting option, e.g., "
     
    2525msgstr ""
    2626
    27 #: woocommerce-extra-product-sorting-options.php:172
     27#: woocommerce-extra-product-sorting-options.php:173
    2828msgid "Add Product Sorting:"
    2929msgstr ""
    3030
    31 #: woocommerce-extra-product-sorting-options.php:175
     31#: woocommerce-extra-product-sorting-options.php:176
    3232#. translators: Placeholders: %1$s - <a>, %2$s - </a>
    3333msgid ""
     
    3636msgstr ""
    3737
    38 #: woocommerce-extra-product-sorting-options.php:200
     38#: woocommerce-extra-product-sorting-options.php:201
    3939msgid "Remove Product Sorting:"
    4040msgstr ""
    4141
    42 #: woocommerce-extra-product-sorting-options.php:203
     42#: woocommerce-extra-product-sorting-options.php:204
    4343#. translators: Placeholders: %1$s - <a>, %2$s - </a>
    4444msgid ""
     
    4747msgstr ""
    4848
    49 #: woocommerce-extra-product-sorting-options.php:263
     49#: woocommerce-extra-product-sorting-options.php:246
    5050msgid "Name: A to Z"
    5151msgstr ""
    5252
    53 #: woocommerce-extra-product-sorting-options.php:264
     53#: woocommerce-extra-product-sorting-options.php:247
    5454msgid "Name: Z to A"
    5555msgstr ""
    5656
    57 #: woocommerce-extra-product-sorting-options.php:265
     57#: woocommerce-extra-product-sorting-options.php:248
    5858msgid "Available Stock"
    5959msgstr ""
    6060
    61 #: woocommerce-extra-product-sorting-options.php:266
     61#: woocommerce-extra-product-sorting-options.php:249
    6262msgid "Review Count"
    6363msgstr ""
    6464
    65 #: woocommerce-extra-product-sorting-options.php:267
     65#: woocommerce-extra-product-sorting-options.php:250
    6666msgid "On-sale First"
    6767msgstr ""
    6868
    69 #: woocommerce-extra-product-sorting-options.php:286
     69#: woocommerce-extra-product-sorting-options.php:269
    7070msgid "Default sorting"
    7171msgstr ""
    7272
    73 #: woocommerce-extra-product-sorting-options.php:287
     73#: woocommerce-extra-product-sorting-options.php:270
    7474msgid "Sort by popularity"
    7575msgstr ""
    7676
    77 #: woocommerce-extra-product-sorting-options.php:288
     77#: woocommerce-extra-product-sorting-options.php:271
    7878msgid "Sort by average rating"
    7979msgstr ""
    8080
    81 #: woocommerce-extra-product-sorting-options.php:289
     81#: woocommerce-extra-product-sorting-options.php:272
    8282msgid "Sort by latest"
    8383msgstr ""
    8484
    85 #: woocommerce-extra-product-sorting-options.php:290
     85#: woocommerce-extra-product-sorting-options.php:273
    8686msgid "Sort by price: low to high"
    8787msgstr ""
    8888
    89 #: woocommerce-extra-product-sorting-options.php:291
     89#: woocommerce-extra-product-sorting-options.php:274
    9090msgid "Sort by price: high to low"
    9191msgstr ""
    9292
    93 #: woocommerce-extra-product-sorting-options.php:364
     93#: woocommerce-extra-product-sorting-options.php:347
    9494msgid "Sort by name: A to Z"
    9595msgstr ""
    9696
    97 #: woocommerce-extra-product-sorting-options.php:367
     97#: woocommerce-extra-product-sorting-options.php:350
    9898msgid "Sort by name: Z to A"
    9999msgstr ""
    100100
    101 #: woocommerce-extra-product-sorting-options.php:370
     101#: woocommerce-extra-product-sorting-options.php:353
    102102msgid "Sort by availability"
    103103msgstr ""
    104104
    105 #: woocommerce-extra-product-sorting-options.php:373
     105#: woocommerce-extra-product-sorting-options.php:356
    106106msgid "Sort by review count"
    107107msgstr ""
    108108
    109 #: woocommerce-extra-product-sorting-options.php:376
     109#: woocommerce-extra-product-sorting-options.php:359
    110110msgid "Show sale items first"
    111111msgstr ""
    112112
    113 #: woocommerce-extra-product-sorting-options.php:557
     113#: woocommerce-extra-product-sorting-options.php:540
    114114#. translators: Placeholders: %s - plugin name
    115115msgid "You cannot clone instances of %s."
    116116msgstr ""
    117117
    118 #: woocommerce-extra-product-sorting-options.php:568
     118#: woocommerce-extra-product-sorting-options.php:551
    119119#. translators: Placeholders: %s - plugin name
    120120msgid "You cannot unserialize instances of %s."
    121121msgstr ""
    122122
    123 #: woocommerce-extra-product-sorting-options.php:586
     123#: woocommerce-extra-product-sorting-options.php:569
    124124msgid "Configure"
    125125msgstr ""
    126126
    127 #: woocommerce-extra-product-sorting-options.php:587
     127#: woocommerce-extra-product-sorting-options.php:570
    128128msgid "FAQ"
    129129msgstr ""
    130130
    131 #: woocommerce-extra-product-sorting-options.php:588
     131#: woocommerce-extra-product-sorting-options.php:571
    132132msgid "Support"
    133133msgstr ""
    134134
    135 #: woocommerce-extra-product-sorting-options.php:660
     135#: woocommerce-extra-product-sorting-options.php:643
    136136#. translators: Placeholders: %1$s <strong>, %2$s - </strong>, %3$s - version
    137137#. number, %4$s - opening HTML <a> link tag, %5$s - closing HTML </a> link tag,
     
    143143msgstr ""
    144144
    145 #: woocommerce-extra-product-sorting-options.php:844
     145#: woocommerce-extra-product-sorting-options.php:827
    146146#. translators: Placeholders: %1$s - <strong>, %2$s - <strong>, %3$s - <a>,
    147147#. %4$s - </a>
     
    152152msgstr ""
    153153
    154 #: woocommerce-extra-product-sorting-options.php:868
     154#: woocommerce-extra-product-sorting-options.php:851
    155155#. translators: Placeholders: %1$s - <strong>, %2$s - <strong>, %3$s - <a>,
    156156#. %4$s - </a>
  • woocommerce-extra-product-sorting-options/trunk/includes/class-wc-eso-customizer-checkbox-multiple.php

    r2764254 r2944593  
    2020 *
    2121 * @author    SkyVerge
    22  * @copyright Copyright (c) 2014-2021, SkyVerge, Inc.
     22 * @copyright Copyright (c) 2014-2023, SkyVerge, Inc.
    2323 * @license   http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
    2424 */
  • woocommerce-extra-product-sorting-options/trunk/readme.txt

    r2764254 r2944593  
    33Tags: woocommerce, sorting, product sorting, orderby
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@skyverge.com&item_name=Donation+for+WooCommerce+Extra+Product+Sorting
    5 Requires at least: 4.4
    6 Tested up to: 6.0.1
    7 Stable Tag: 2.9.1
    8 Requires PHP: 5.6
     5Requires at least: 5.6
     6Tested up to: 6.2.2
     7Stable Tag: 2.10.0
     8Requires PHP: 7.4
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1616Extra Product Sorting Options for WooCommerce provides options that extend the default WooCommerce orderby options on the shop page. You can optionally set a new name for the default sorting (helpful if you've used this to create a custom sorting order), and can enable up to **5 new sorting options**: alphabetical, reverse alphabetical, on sale, review count, and availability product sorting. You can also remove core sorting options, or remove the sorting dropdown completely.
    1717
    18 > **Requires: PHP 5.6, WooCommerce 3.5+ and WordPress 4.4+**
     18> **Requires: PHP 7.4, WooCommerce 3.9+ and WordPress 5.6+**
    1919
    2020= Features =
     
    9090
    9191== Changelog ==
     92
     93= 2023.07.28 - version 2.10.0 =
     94 * Misc - Add compatibility for WooCommerce High Performance Order Storage (HPOS)
     95 * Misc - Require PHP 7.4+, WordPress 5.6+ and WooCommerce 3.9+
    9296
    9397= 2022.07.31 - version 2.9.1 =
  • woocommerce-extra-product-sorting-options/trunk/woocommerce-extra-product-sorting-options.php

    r2764254 r2944593  
    66 * Author: SkyVerge
    77 * Author URI: http://www.skyverge.com/
    8  * Version: 2.9.1
     8 * Version: 2.10.0
    99 * Text Domain: woocommerce-extra-product-sorting-options
    1010 * Domain Path: /i18n/languages/
    1111 *
    12  * Copyright: (c) 2014-2021, SkyVerge, Inc. (info@skyverge.com)
     12 * Copyright: (c) 2014-2023, SkyVerge, Inc. (info@skyverge.com)
    1313 *
    1414 * License: GNU General Public License v3.0
     
    1717 * @author    SkyVerge
    1818 * @category  Admin
    19  * @copyright Copyright (c) 2014-2021, SkyVerge, Inc.
     19 * @copyright Copyright (c) 2014-2023, SkyVerge, Inc.
    2020 * @license   http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
    2121 *
    22  * WC requires at least: 3.5.0
    23  * WC tested up to: 6.7.0
     22 * WC requires at least: 3.9.4
     23 * WC tested up to: 7.9.0
    2424 */
    2525
     
    4444
    4545    /** plugin version number */
    46     const VERSION = '2.9.1';
     46    const VERSION = '2.10.0';
    4747
    4848    /** required WooCommerce version number */
    49     const MIN_WOOCOMMERCE_VERSION = '3.5.0';
     49    const MIN_WOOCOMMERCE_VERSION = '3.9.4';
    5050
    5151    /** @var WC_Extra_Sorting_Options single instance of this plugin */
     
    8888            $this->install();
    8989        }
    90     }
    91 
    92 
    93     /**
    94      * Adds Settings to WooCommerce Settings > Products page after "Default Product Sorting" setting.
    95      *
    96      * @since 1.0.0
    97      * @deprecated 2.9.0
    98      *
    99      * @TODO remove this deprecated method by April 2022 or by version 3.0.0 {FN 2021-04-14}
    100      *
    101      * @param array $settings the current product settings
    102      * @return array updated settings
    103      */
    104     public function add_settings( $settings ) {
    105 
    106         wc_deprecated_function( __METHOD__ ,'2.9.0' );
    107 
    108         return $settings;
     90
     91        // handle HPOS compatibility
     92        add_action( 'before_woocommerce_init', [ $this, 'handle_hpos_compatibility' ] );
     93    }
     94
     95
     96    /**
     97     * Declares HPOS compatibility.
     98     *
     99     * @since 2.10.0
     100     *
     101     * @internal
     102     *
     103     * @return void
     104     */
     105    public function handle_hpos_compatibility()
     106    {
     107        if ( class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     108            \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', plugin_basename( __FILE__ ), true );
     109        }
    109110    }
    110111
     
    234235
    235236    /**
    236      * Gets the set of settings options.
    237      *
    238      * @since 2.7.0
    239      * @deprecated 2.9.0
    240      *
    241      * @TODO remove this method by version 3.0.0 or by April 2022 {FN 2021-04-14}
    242      *
    243      * @return array settings options
    244      */
    245     protected function get_settings_options() {
    246 
    247         wc_deprecated_function( __METHOD__, '2.9.0' );
    248 
    249         return $this->get_extra_sorting_setting_options();
    250     }
    251 
    252 
    253     /**
    254237     * Gets sorting options as settings options.
    255238     *
Note: See TracChangeset for help on using the changeset viewer.