Merge pull request #312 from curtismchale/master

Fixes debug output on the add new links page.
This commit is contained in:
Mike Jolley 2011-12-02 12:49:58 -08:00
commit 21bce66f83
1 changed files with 2 additions and 0 deletions

View File

@ -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'] ) ) :