Plugin Directory

Changeset 3174141


Ignore:
Timestamp:
10/23/2024 08:40:59 AM (5 months ago)
Author:
wizbee
Message:

1.2 fix

Location:
custom-product-in-woo-order
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-product-in-woo-order/tags/1.2/includes/add-elements-to-order.php

    r3174133 r3174141  
    66function wb_cpwo_enqueue_custom_admin_scripts($hook_suffix) {
    77    if (
    8             (isset($_GET['page']) && $_GET['page'] === 'wc-orders') ||
    9             (isset($_GET['post_type']) && $_GET['post_type'] === 'shop_order')
     8            (isset($_GET['page']) && $_GET['page'] === 'wc-orders') ||
     9            (isset($_GET['action']) && $_GET['action'] === 'edit' && strpos($_SERVER['REQUEST_URI'], 'post.php') !== false)
    1010        ) {
    1111       
  • custom-product-in-woo-order/trunk/includes/add-elements-to-order.php

    r3174133 r3174141  
    66function wb_cpwo_enqueue_custom_admin_scripts($hook_suffix) {
    77    if (
    8             (isset($_GET['page']) && $_GET['page'] === 'wc-orders') ||
    9             (isset($_GET['post_type']) && $_GET['post_type'] === 'shop_order')
     8            (isset($_GET['page']) && $_GET['page'] === 'wc-orders') ||
     9            (isset($_GET['action']) && $_GET['action'] === 'edit' && strpos($_SERVER['REQUEST_URI'], 'post.php') !== false)
    1010        ) {
    1111       
Note: See TracChangeset for help on using the changeset viewer.