Plugin Directory

Changeset 3093396


Ignore:
Timestamp:
05/27/2024 05:41:53 PM (23 months ago)
Author:
theritesites
Message:

1.5.1 - asset enqueueing correction

Location:
woo-cost-of-shipping/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woo-cost-of-shipping/trunk/README.txt

    r3092786 r3093396  
    5959
    6060== Changelog ==
     61
     62= 1.5.1 =
     63- Fixed: WooCommerce admin page changes prevented javascript enqueueing.
    6164
    6265= 1.5.0 =
  • woo-cost-of-shipping/trunk/includes/admin/class-wc-cos-admin-orders.php

    r3092786 r3093396  
    106106        global $pagenow;
    107107        global $post_type;
    108 
    109         if ( $pagenow == 'post.php' && $post_type == 'shop_order' ) {
     108        $admin_page = $_GET['page'];
     109
     110        if ( ( $pagenow == 'post.php' && $post_type == 'shop_order' ) || ( $pagenow == 'admin.php' && $admin_page == 'wc-orders' ) ) {
    110111
    111112            $js_file = '';
     
    139140        global $pagenow;
    140141        global $post_type;
    141        
    142         if ( $pagenow == 'post.php' && $post_type == 'shop_order' ) {
     142        $admin_page = $_GET['page'];
     143
     144        if ( ( $pagenow == 'post.php' && $post_type == 'shop_order' ) || ( $pagenow == 'admin.php' && $admin_page == 'wc-orders' ) ) {
    143145
    144146            $cs_file = '';
  • woo-cost-of-shipping/trunk/woocommerce-cost-of-shipping.php

    r3092786 r3093396  
    44 * Plugin URI:  https://www.theritesites.com/plugins/woocommerce-cost-of-shipping
    55 * Description: Allows the association of the cost of shipping to WooCommerce orders
    6  * Version:     1.5.0
     6 * Version:     1.5.1
    77 * Author:      TheRiteSites
    88 * Author URI:  https://www.theritesites.com
     
    1818 *
    1919 * @package WC_COS
    20  * @version 1.5.0
     20 * @version 1.5.1
    2121 */
    2222
     
    6262     * @since  1.0.0
    6363     */
    64     const VERSION = '1.5.0';
     64    const VERSION = '1.5.1';
    6565
    6666    /**
Note: See TracChangeset for help on using the changeset viewer.