WordPress.org

Plugin Directory

Changeset 344353


Ignore:
Timestamp:
02/11/11 22:26:01 (3 years ago)
Author:
JustinSainton
Message:

Silly logic, tricks are for kids.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/admin.php

    r344349 r344353  
    257257 
    258258    //if a variation page do not show these metaboxes 
    259     if ( is_object( $post ) && $post->post_parent == 0 && $post->post_status != "inherit" ) { 
     259    if ( is_object( $post ) && $post->post_parent == 0 ) { 
    260260        add_meta_box( 'wpsc_product_variation_forms', __('Variations', 'wpsc'), 'wpsc_product_variation_forms', $pagename, 'normal', 'high' ); 
    261261        add_meta_box( 'wpsc_product_external_link_forms', __('Off Site Product link', 'wpsc'), 'wpsc_product_external_link_forms', $pagename, 'normal', 'high' ); 
    262     }else { 
     262    } else if( $post->post_status == "inherit"  ) { 
    263263        remove_meta_box( 'tagsdiv-product_tag', 'wpsc-product', 'core' ); 
    264264        remove_meta_box( 'wpsc_product_external_link_forms', 'wpsc-product', 'core' ); 
Note: See TracChangeset for help on using the changeset viewer.