Removed more legacy $woocommerce variable
This commit is contained in:
parent
612b54f0df
commit
fff98a9fbd
|
@ -442,7 +442,7 @@ class WC_Admin_Post_Types {
|
|||
* @param string $column
|
||||
*/
|
||||
public function render_shop_coupon_columns( $column ) {
|
||||
global $post, $woocommerce;
|
||||
global $post;
|
||||
|
||||
switch ( $column ) {
|
||||
case 'coupon_code' :
|
||||
|
@ -512,7 +512,7 @@ class WC_Admin_Post_Types {
|
|||
* @param string $column
|
||||
*/
|
||||
public function render_shop_order_columns( $column ) {
|
||||
global $post, $woocommerce, $the_order;
|
||||
global $post, $the_order;
|
||||
|
||||
if ( empty( $the_order ) || $the_order->get_id() != $post->ID ) {
|
||||
$the_order = wc_get_order( $post->ID );
|
||||
|
|
|
@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
global $post, $product, $woocommerce;
|
||||
global $post, $product;
|
||||
|
||||
$attachment_ids = $product->get_gallery_image_ids();
|
||||
|
||||
|
|
Loading…
Reference in New Issue