Changeset 3241551
- Timestamp:
- 02/17/2025 12:30:26 AM (14 months ago)
- Location:
- wc-provincia-canton-distrito
- Files:
-
- 21 added
- 4 edited
-
tags/1.5.4 (added)
-
tags/1.5.4/assets (added)
-
tags/1.5.4/assets/js (added)
-
tags/1.5.4/assets/js/prov-cant-dist.js (added)
-
tags/1.5.4/assets/js/prov-cant-dist.json (added)
-
tags/1.5.4/assets/js/prov-cant-dist.min.js (added)
-
tags/1.5.4/includes (added)
-
tags/1.5.4/includes/admin (added)
-
tags/1.5.4/includes/admin/wcpcd-settings.php (added)
-
tags/1.5.4/includes/wcpcd-admin.php (added)
-
tags/1.5.4/includes/wcpcd-class.php (added)
-
tags/1.5.4/includes/wcpcd-misc.php (added)
-
tags/1.5.4/index.php (added)
-
tags/1.5.4/languages (added)
-
tags/1.5.4/languages/wc-prov-cant-dist-es_CR.mo (added)
-
tags/1.5.4/languages/wc-prov-cant-dist-es_CR.po (added)
-
tags/1.5.4/languages/wc-prov-cant-dist-es_ES.mo (added)
-
tags/1.5.4/languages/wc-prov-cant-dist-es_ES.po (added)
-
tags/1.5.4/languages/wc-prov-cant-dist.pot (added)
-
tags/1.5.4/readme.txt (added)
-
tags/1.5.4/wc-prov-cant-dist.php (added)
-
trunk/includes/wcpcd-class.php (modified) (2 diffs)
-
trunk/languages/wc-prov-cant-dist.pot (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wc-prov-cant-dist.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-provincia-canton-distrito/trunk/includes/wcpcd-class.php
r3241536 r3241551 74 74 * Plugin locations allowed 75 75 * 76 * @version 1.5. 376 * @version 1.5.4 77 77 * @since 1.2.5 78 78 * … … 81 81 private function wcpcd_locations_allowed() 82 82 { 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 } 85 91 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 ) { 87 93 return true; 88 94 } -
wc-provincia-canton-distrito/trunk/languages/wc-prov-cant-dist.pot
r3231706 r3241551 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WC Provincia-Canton-Distrito 1.5. 1\n"5 "Project-Id-Version: WC Provincia-Canton-Distrito 1.5.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-provincia-canton-distrito\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 1-30T05:13:26+00:00\n"12 "POT-Creation-Date: 2025-02-17T00:18:28+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.1\n" … … 24 24 25 25 #. 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." 26 msgid "This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce." 28 27 msgstr "" 29 28 … … 37 36 38 37 #: includes/admin/wcpcd-settings.php:2 39 #: includes/wcpcd-class.php:3 5638 #: includes/wcpcd-class.php:310 40 39 msgid "Settings" 41 40 msgstr "" … … 120 119 121 120 #: includes/wcpcd-admin.php:16 122 #: includes/wcpcd- class.php:265121 #: includes/wcpcd-misc.php:94 123 122 msgid "State" 124 123 msgstr "" 125 124 126 125 #: includes/wcpcd-admin.php:23 127 #: includes/wcpcd- class.php:266126 #: includes/wcpcd-misc.php:95 128 127 msgid "City-District" 129 128 msgstr "" 130 129 131 130 #: includes/wcpcd-admin.php:27 132 #: includes/wcpcd-class.php:1 14133 #: includes/wcpcd- class.php:267131 #: includes/wcpcd-class.php:124 132 #: includes/wcpcd-misc.php:96 134 133 msgid "Choose a city" 135 134 msgstr "" 136 135 137 #: includes/wcpcd-class.php:136 136 #: includes/wcpcd-class.php:49 137 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." 138 msgstr "" 139 140 #: includes/wcpcd-class.php:146 138 141 msgid "Choose a state" 139 142 msgstr "" 140 143 141 144 #. translators: %1$s Plugin name, %2$s Open a tag, %3$s Close a tag 142 #: wc-prov-cant-dist.php: 49145 #: wc-prov-cant-dist.php:50 143 146 msgid "%1$s requires %2$sWooCommerce%3$s to be active." 144 147 msgstr "" -
wc-provincia-canton-distrito/trunk/readme.txt
r3241536 r3241551 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7.2 7 Stable tag: 1.5. 37 Stable tag: 1.5.4 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 = 1.5.4 = 69 * Fix: Prevent Fatal Error caused by previous validation 70 68 71 = 1.5.3 = 69 72 * 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 4 4 * Plugin URI: https://keylormendoza.com/woocommerce/wc-provincia-canton-distrito/ 5 5 * Description: This plugin allows you to populate your custom states, cities, and postcodes for WooCommerce. 6 * Version: 1.5. 36 * Version: 1.5.4 7 7 * Requires at least: 4.7 8 8 * Tested up to: 6.7.2 … … 19 19 20 20 if ( !defined( 'WPCD_PLUGIN_VERSION' ) ) { 21 define( 'WPCD_PLUGIN_VERSION', '1.5. 3' );21 define( 'WPCD_PLUGIN_VERSION', '1.5.4' ); 22 22 } 23 23
Note: See TracChangeset
for help on using the changeset viewer.