Removed more legacy $woocommerce variable

This commit is contained in:
Claudio Sanches 2017-01-11 13:31:31 -02:00
parent 612b54f0df
commit fff98a9fbd
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $post, $product, $woocommerce;
global $post, $product;
$attachment_ids = $product->get_gallery_image_ids();