Plugin Directory

Changeset 3241551


Ignore:
Timestamp:
02/17/2025 12:30:26 AM (14 months ago)
Author:
keylorcr
Message:

Fix previous release

Location:
wc-provincia-canton-distrito
Files:
21 added
4 edited

Legend:

Unmodified
Added
Removed
  • wc-provincia-canton-distrito/trunk/includes/wcpcd-class.php

    r3241536 r3241551  
    7474     * Plugin locations allowed
    7575     *
    76      * @version 1.5.3
     76     * @version 1.5.4
    7777     * @since 1.2.5
    7878     *
     
    8181    private function wcpcd_locations_allowed()
    8282    {
    83         $screen = get_current_screen();
    84         $order_screen_id = \Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled() ? wc_get_page_screen_id( 'shop-order' ) : 'shop_order';
     83        $screen = null;
     84        $is_order_screen = false;
     85
     86        if ( is_admin() ) {
     87            $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
     88            $order_screen_id = \Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled() ? wc_get_page_screen_id( 'shop-order' ) : 'shop_order';
     89            $is_order_screen = (bool) ( !is_null( $screen ) && $screen->id == $order_screen_id );
     90        }
    8591       
    86         if ( is_cart() || is_checkout() || is_account_page() || ( !is_null( $screen ) && $screen->id == $order_screen_id ) ) {
     92        if ( is_cart() || is_checkout() || is_account_page() || $is_order_screen ) {
    8793            return true;
    8894        }
  • wc-provincia-canton-distrito/trunk/languages/wc-prov-cant-dist.pot

    r3231706 r3241551  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WC Provincia-Canton-Distrito 1.5.1\n"
     5"Project-Id-Version: WC Provincia-Canton-Distrito 1.5.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-provincia-canton-distrito\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: 2025-01-30T05:13:26+00:00\n"
     12"POT-Creation-Date: 2025-02-17T00:18:28+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.1\n"
     
    2424
    2525#. Description of the plugin
    26 #: includes/wcpcd-class.php:49
    27 msgid "This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce. It started working only for Costa Rica but now it is compatible with multi countries."
     26msgid "This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce."
    2827msgstr ""
    2928
     
    3736
    3837#: includes/admin/wcpcd-settings.php:2
    39 #: includes/wcpcd-class.php:356
     38#: includes/wcpcd-class.php:310
    4039msgid "Settings"
    4140msgstr ""
     
    120119
    121120#: includes/wcpcd-admin.php:16
    122 #: includes/wcpcd-class.php:265
     121#: includes/wcpcd-misc.php:94
    123122msgid "State"
    124123msgstr ""
    125124
    126125#: includes/wcpcd-admin.php:23
    127 #: includes/wcpcd-class.php:266
     126#: includes/wcpcd-misc.php:95
    128127msgid "City-District"
    129128msgstr ""
    130129
    131130#: includes/wcpcd-admin.php:27
    132 #: includes/wcpcd-class.php:114
    133 #: includes/wcpcd-class.php:267
     131#: includes/wcpcd-class.php:124
     132#: includes/wcpcd-misc.php:96
    134133msgid "Choose a city"
    135134msgstr ""
    136135
    137 #: includes/wcpcd-class.php:136
     136#: includes/wcpcd-class.php:49
     137msgid "This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce. It started working only for Costa Rica but now it is compatible with multi countries."
     138msgstr ""
     139
     140#: includes/wcpcd-class.php:146
    138141msgid "Choose a state"
    139142msgstr ""
    140143
    141144#. translators: %1$s Plugin name, %2$s Open a tag, %3$s Close a tag
    142 #: wc-prov-cant-dist.php:49
     145#: wc-prov-cant-dist.php:50
    143146msgid "%1$s requires %2$sWooCommerce%3$s to be active."
    144147msgstr ""
  • wc-provincia-canton-distrito/trunk/readme.txt

    r3241536 r3241551  
    55Requires at least: 4.7
    66Tested up to: 6.7.2
    7 Stable tag: 1.5.3
     7Stable tag: 1.5.4
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68= 1.5.4 =
     69* Fix: Prevent Fatal Error caused by previous validation
     70
    6871= 1.5.3 =
    6972* New: Class WCPCD_Misc to handle Woo hooks and prevent incompatibility from main plugin class
  • wc-provincia-canton-distrito/trunk/wc-prov-cant-dist.php

    r3241536 r3241551  
    44 * Plugin URI: https://keylormendoza.com/woocommerce/wc-provincia-canton-distrito/
    55 * Description: This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce.
    6  * Version: 1.5.3
     6 * Version: 1.5.4
    77 * Requires at least: 4.7
    88 * Tested up to: 6.7.2
     
    1919
    2020if ( !defined( 'WPCD_PLUGIN_VERSION' ) ) {
    21     define( 'WPCD_PLUGIN_VERSION', '1.5.3' );
     21    define( 'WPCD_PLUGIN_VERSION', '1.5.4' );
    2222}
    2323
Note: See TracChangeset for help on using the changeset viewer.