Merge pull request #312 from curtismchale/master
Fixes debug output on the add new links page.
This commit is contained in:
commit
21bce66f83
|
@ -318,6 +318,8 @@ function woocommerce_duplicate_product_post_button() {
|
|||
|
||||
if (!current_user_can('manage_woocommerce')) return;
|
||||
|
||||
if( !is_object( $post ) ) return;
|
||||
|
||||
if ($post->post_type!='product') return;
|
||||
|
||||
if ( isset( $_GET['post'] ) ) :
|
||||
|
|
Loading…
Reference in New Issue