'0', 'name' => '', 'description' => '', 'additional_description' => '', 'price' => '0.00', 'weight' => '0', 'weight_unit' => 'pound', 'pnp' => '0.00', 'international_pnp' => '0.00', 'file' => '0', 'image' => '', 'category' => '0', 'brand' => '0', 'quantity_limited' => '0', 'quantity' => '0', 'special' => '0', 'special_price' => 0.00, 'display_frontpage' => '0', 'notax' => '0', 'publish' => '1', 'active' => '1', 'donation' => '0', 'no_shipping' => '0', 'thumbnail_image' => '', 'thumbnail_state' => '1', 'meta' => array( 'external_link' => NULL, 'external_link_text' => NULL, 'external_link_target' => NULL, 'merchant_notes' => NULL, 'sku' => NULL, 'engrave' => '0', 'can_have_uploaded_image' => '0', 'table_rate_price' => array( 'quantity' => array( 0 => '', ), 'table_price' => array( 0 => '', ), ), ), ); add_action( 'admin_head', 'wpsc_css_header' ); function wpsc_redirect_variation_update( $location, $post_id ) { global $post; if ( $post->post_parent > 0 && 'wpsc-product' == $post->post_type ) wp_redirect( admin_url( 'post.php?post='.$post->post_parent.'&action=edit' ) ); else return $location; } add_filter( 'redirect_post_location', 'wpsc_redirect_variation_update', 10, 2 ); function wpsc_css_header() { global $post_type; ?> ID ); $product_data['meta'] = maybe_unserialize( $product_data ); foreach ( $product_data['meta'] as $meta_key => $meta_value ) $product_data['meta'][$meta_key] = $meta_value[0]; $product_meta = array(); if ( !empty( $product_data["_wpsc_product_metadata"] ) ) $product_meta = maybe_unserialize( $product_data["_wpsc_product_metadata"][0] ); if ( isset( $product_data['meta']['_wpsc_currency'] ) ) $product_alt_currency = maybe_unserialize( $product_data['meta']['_wpsc_currency'] ); if ( !isset( $product_data['meta']['_wpsc_table_rate_price'] ) ) { $product_data['meta']['_wpsc_table_rate_price'] = $wpsc_product_defaults['meta']['table_rate_price']; } if ( isset( $product_meta['_wpsc_table_rate_price'] ) ) { $product_meta['table_rate_price']['state'] = 1; $product_meta['table_rate_price'] += $product_meta['_wpsc_table_rate_price']; $product_data['meta']['_wpsc_table_rate_price'] = $product_meta['_wpsc_table_rate_price']; } if ( !isset( $product_data['meta']['_wpsc_is_donation'] ) ) $product_data['meta']['_wpsc_is_donation'] = $wpsc_product_defaults['donation']; if ( !isset( $product_meta['table_rate_price']['state'] ) ) $product_meta['table_rate_price']['state'] = null; if ( !isset( $product_meta['table_rate_price']['quantity'] ) ) $product_meta['table_rate_price']['quantity'] = $wpsc_product_defaults['meta']['table_rate_price']['quantity'][0]; if ( !isset( $product_data['meta']['_wpsc_price'] ) ) $product_data['meta']['_wpsc_price'] = $wpsc_product_defaults['price']; if ( !isset( $product_data['special'] ) ) $product_data['special'] = $wpsc_product_defaults['special']; if ( !isset( $product_data['meta']['_wpsc_special_price'] ) ) $product_data['meta']['_wpsc_special_price'] = $wpsc_product_defaults['special_price']; $currency_data = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_CURRENCY_LIST . "` ORDER BY `country` ASC", ARRAY_A ); ?> ID ) ) : ?> ID ); ?>

Variation Controls below.' , 'wpsc' ); ?>


' />
; width:85px; margin-left:30px;'>
' name='meta[_wpsc_special_price]' />




:
$alt_price ) { $i++; ?>


 "; ?>

/>


0 ) { foreach ( (array)$product_meta['table_rate_price']['quantity'] as $key => $quantity ) { if ( $quantity != '' ) { $table_price = number_format( $product_meta['table_rate_price']['table_price'][$key], 2, '.', '' ); ?>
ID ); $product_data['meta'] = maybe_unserialize( $product_data ); foreach ( $product_data['meta'] as $meta_key => $meta_value ) $product_data['meta'][$meta_key] = $meta_value[0]; $product_meta = array(); if ( !empty( $product_data["_wpsc_product_metadata"] ) ) $product_meta = maybe_unserialize( $product_data["_wpsc_product_metadata"][0] ); if ( !isset( $product_meta['unpublish_when_none_left'] ) ) $product_meta['unpublish_when_none_left'] = ''; ?>
' />

name='meta[_wpsc_limited_stock]' /> ID > 0 ) { if ( is_numeric( $product_data['meta']['_wpsc_stock'] ) ) {?>
ID ); $product_data['meta'] = $product_meta = array(); if ( !empty( $product_data['_wpsc_product_metadata'] ) ) $product_data['meta'] = $product_meta = maybe_unserialize( $product_data['_wpsc_product_metadata'][0] ); if ( !isset( $product_data['meta']['_wpsc_custom_tax'] ) ) $product_data['meta']['_wpsc_custom_tax'] = ''; $custom_tax = $product_data['meta']['_wpsc_custom_tax']; if ( !isset( $product_meta['custom_tax'] ) ) { $product_meta['custom_tax'] = 0.00; } //Add New WPEC-Taxes Bands Here $wpec_taxes_controller = new wpec_taxes_controller(); //display tax bands $band_select_settings = array( 'id' => 'wpec_taxes_band', 'name' => 'meta[_wpsc_product_metadata][wpec_taxes_band]', 'label' => __( 'Custom Tax Band', 'wpsc' ) ); $wpec_taxes_band = ''; if ( isset( $product_meta['wpec_taxes_band'] ) ) { $band = $wpec_taxes_controller->wpec_taxes->wpec_taxes_get_band_from_index( $product_meta['wpec_taxes_band'] ); $wpec_taxes_band = array( 'index'=>$band['index'], 'name'=>$band['name'] ); } $taxable_checkbox_settings = array( 'type' => 'checkbox', 'id' => 'wpec_taxes_taxable', 'name' => 'meta[_wpsc_product_metadata][wpec_taxes_taxable]', 'label' => __( 'This product is not taxable.', 'wpsc' ) ); if ( isset( $product_meta['wpec_taxes_taxable'] ) && 'on' == $product_meta['wpec_taxes_taxable'] ) { $taxable_checkbox_settings['checked'] = 'checked'; } //add taxable amount only for exclusive tax if ( !$wpec_taxes_controller->wpec_taxes_isincluded() ) { $taxable_amount_input_settings = array( 'id' => 'wpec_taxes_taxable_amount', 'name' => 'meta[_wpsc_product_metadata][wpec_taxes_taxable_amount]', 'label' => __( 'Taxable Amount', 'wpsc' ) ); if ( isset( $product_meta['wpec_taxes_taxable_amount'] ) ) { $taxable_amount_input_settings['value'] = $product_meta['wpec_taxes_taxable_amount']; } }// if ?>

wpec_taxes_display_tax_bands( $band_select_settings, $wpec_taxes_band ); ?>

wpec_taxes_isincluded() ): ?> wpec_taxes_build_input( $taxable_amount_input_settings );?>

wpec_taxes_build_input( $taxable_checkbox_settings ); ?>

ID ); $product_data['meta'] = maybe_unserialize( $product_data ); foreach ( $product_data['meta'] as $meta_key => $meta_value ) $product_data['meta'][$meta_key] = $meta_value[0]; $product_meta = array(); if ( !empty( $product_data["_wpsc_product_metadata"] ) ) $product_meta = maybe_unserialize( $product_data["_wpsc_product_metadata"][0] ); $siteurl = get_option( 'siteurl' ); $output = ''; // Get variation data from WP Terms $product_term_data = wp_get_object_terms( $post->ID, 'wpsc-variation' ); if ( !empty( $product_term_data ) ) { foreach ( $product_term_data as $product_term ) $product_terms[] = $product_term->term_id; } else { $product_terms = array(); } ?> post_title ) ) : ?>

0, 'parent' => 0 ) ); // Loop through each variation set foreach ( (array)$variation_sets as $variation_set ) : $set_checked_state = ''; // If this Product includes this variation, check it if ( in_array( $variation_set->term_id, $product_terms ) ) $set_checked_state = "checked='checked'"; ?>
0, 'parent' => $variation_set->term_id ) ); // Loop through the variations foreach ( (array)$variations as $variation ) : $checked_state = ''; if ( in_array( $variation->term_id, $product_terms ) ) $checked_state = "checked='checked'"; ?>
ID; $query = array( 'post_type' => 'wpsc-product', 'orderby' => 'menu_order post_title', 'post_parent' => $parent_product, 'post_status' => 'publish, inherit', 'order' => "ASC" ); $args = array( 'post_type' => 'attachment', 'numberposts' => 1, 'post_status' => null, 'post_parent' => $parent_product, 'orderby' => 'menu_order', 'order' => 'ASC' ); $image_data = (array)get_posts( $args ); $parent_product_data['image'] = array_shift( $image_data ); $wp_query = new WP_Query( $query ); if ( !isset( $parent_product_data ) ) $parent_product_data = null; ?>

 

posts ) < 1 ) : ?>
ID ); $product_data['meta'] = maybe_unserialize( $product_data ); foreach ( $product_data['meta'] as $meta_key => $meta_value ) $product_data['meta'][$meta_key] = $meta_value[0]; $product_meta = array(); if ( !empty( $product_data["_wpsc_product_metadata"] ) ) $product_meta = maybe_unserialize( $product_data["_wpsc_product_metadata"][0] ); $product_data['transformed'] = array(); if ( !isset( $product_meta['weight'] ) ) $product_meta['weight'] = ""; if( !isset( $product_meta['weight_unit'] ) ) $product_meta['weight_unit'] = ''; $product_data['transformed']['weight'] = wpsc_convert_weight( $product_meta['weight'], "pound", $product_meta['weight_unit']); // Fix wp_debug notices if(!isset($product_meta['dimensions'])){ $product_meta['dimensions'] = array( 'height' => 0, 'width' => 0, 'length' => 0 ); } if( !isset($product_meta['display_weight_as']) ) $product_meta['display_weight_as'] = ''; if( !isset( $product_meta['dimensions']['height_unit'] ) ) $product_meta['dimensions']['height_unit'] = ''; if( !isset( $product_meta['dimensions']['width_unit'] ) ) $product_meta['dimensions']['width_unit'] = ''; if( !isset( $product_meta['dimensions']['length_unit'] ) ) $product_meta['dimensions']['length_unit'] = ''; if( !isset( $product_meta['shipping'] ) ){ $product_meta['shipping']['local'] = ''; $product_meta['shipping']['international'] = ''; } if( !isset( $product_meta['no_shipping'] ) ) $product_meta['no_shipping'] = ''; ?>
' />
'>
'>
'>
' />
' />

/> 
ID ); $product_data['meta'] = $product_meta = array(); if ( !empty( $product_data['_wpsc_product_metadata'] ) ) $product_data['meta'] = $product_meta = maybe_unserialize( $product_data['_wpsc_product_metadata'][0] ); $custom_fields = $wpdb->get_results( " SELECT `meta_id`, `meta_key`, `meta_value` FROM `{$wpdb->postmeta}` WHERE `post_id` = {$post->ID} AND `meta_key` NOT LIKE '\_%' ORDER BY LOWER(meta_key)", ARRAY_A ); if( !isset( $product_meta['engraved'] ) ) $product_meta['engraved'] = ''; if( !isset( $product_meta['can_have_uploaded_image'] ) ) $product_meta['can_have_uploaded_image'] = ''; ?> ID ); ob_get_contents(); ob_end_clean(); ?>
:
+

' name='custom_meta[][name]' id='custom_meta_name_'>
:

:




:
id='add_engrave_text' />
id='can_have_uploaded_image' />
name='meta[_wpsc_product_metadata][google_prohibited]' id='add_google_prohibited' />

:

ID ); $product_data['meta'] = $product_meta = array(); if ( !empty( $product_data['_wpsc_product_metadata'] ) ) $product_data['meta'] = $product_meta = maybe_unserialize( $product_data['_wpsc_product_metadata'][0] ); // Get External Link Values $external_link_value = isset( $product_meta['external_link'] ) ? $product_meta['external_link'] : ''; $external_link_text_value = isset( $product_meta['external_link_text'] ) ? $product_meta['external_link_text'] : ''; $external_link_target_value = isset( $product_meta['external_link_target'] ) ? $product_meta['external_link_target'] : ''; $external_link_target_value_selected[$external_link_target_value] = ' selected="selected"'; if ( !isset( $external_link_target_value_selected['_self'] ) ) $external_link_target_value_selected['_self'] = ''; if ( !isset( $external_link_target_value_selected['_blank'] ) ) $external_link_target_value_selected['_blank'] = ''; ?>

>

ID ); $output = ''; $product_data['meta'] = $product_meta = array(); if ( !empty( $product_data['_wpsc_product_metadata'] ) ) $product_data['meta'] = $product_meta = maybe_unserialize( $product_data['_wpsc_product_metadata'][0] ); $upload_max = wpsc_get_max_upload_size(); ?> ID ); ?>

:


:



'wpsc-preview-file', 'post_parent' => $post->ID, 'numberposts' => -1, 'post_status' => 'all' ); $preview_files = (array)get_posts( $args ); foreach ($preview_files as $preview) echo $preview->post_title . '
'; ?>
id != 'wpsc-product' ) return $context; return __( 'Upload Image%s', 'wpsc' ); } function change_link( $link ) { global $post_ID, $current_screen; if ( $current_screen->id != 'wpsc-product' ) return $link; $uploading_iframe_ID = $post_ID; $media_upload_iframe_src = "media-upload.php?post_id=$uploading_iframe_ID"; return $media_upload_iframe_src . "&type=image&parent_page=wpsc-edit-products"; } function wpsc_form_multipart_encoding() { echo ' enctype="multipart/form-data"'; } add_action( 'post_edit_form_tag', 'wpsc_form_multipart_encoding' ); add_filter( 'media_buttons_context', 'change_context' ); add_filter( 'image_upload_iframe_src', "change_link" ); /* * Modifications to Media Gallery */ if ( ( isset( $_REQUEST['parent_page'] ) && ( $_REQUEST['parent_page'] == 'wpsc-edit-products' ) ) ) { add_filter( 'media_upload_tabs', 'wpsc_media_upload_tab_gallery', 12 ); add_filter( 'attachment_fields_to_save', 'wpsc_save_attachment_fields', 9, 2 ); add_filter( 'media_upload_form_url', 'wpsc_media_upload_url', 9, 1 ); add_action( 'admin_head', 'wpsc_gallery_css_mods' ); } add_filter( 'gettext', 'wpsc_filter_delete_text', 12 , 3 ); add_filter( 'attachment_fields_to_edit', 'wpsc_attachment_fields', 11, 2 ); add_filter( 'gettext', 'wpsc_filter_feature_image_text', 12, 3 ); add_filter( 'gettext_with_context', 'wpsc_filter_gettex_with_context', 12, 4); if ( isset( $_REQUEST["save"] ) && isset( $_REQUEST["attachments"] ) && is_array( $_REQUEST["attachments"] ) ) { //wpsc_regenerate_thumbnails(); } /* * This filter overrides string with context translations * * @param $translation The current translation * @param $text The text being translated * @param $context The domain for the translation * @param $domain The domain for the translation * @return string The translated / filtered text. */ function wpsc_filter_gettex_with_context( $translation, $text, $context, $domain ) { if ( 'Taxonomy Parent' == $context && 'Parent' == $text && isset($_GET['taxonomy']) && 'wpsc-variation' == $_GET['taxonomy'] ) { $translations = &get_translations_for_domain( $domain ); return $translations->translate( 'Variation set', 'wpsc' ); //this will never happen, this is here only for gettex to pick up the translation return __( 'Variation set', 'wpsc' ); } return $translation; } /* * This filter translates string before it is displayed * specifically for the words 'Use as featured image' with 'Use as Product Thumbnail' when the user is selecting a Product Thumbnail * using media gallery. * * @param $translation The current translation * @param $text The text being translated * @param $domain The domain for the translation * @return string The translated / filtered text. */ function wpsc_filter_feature_image_text( $translation, $text, $domain ) { if ( 'Use as featured image' == $text && isset( $_REQUEST['post_id'] ) ) { $post = get_post( $_REQUEST['post_id'] ); if ( $post->post_type != 'wpsc-product' ) return $translation; $translations = &get_translations_for_domain( $domain ); return $translations->translate( 'Use as Product Thumbnail', 'wpsc' ); //this will never happen, this is here only for gettex to pick up the translation return __( 'Use as Product Thumbnail', 'wpsc' ); } if ( 'The name is how it appears on your site.' == $text && isset($_GET['taxonomy']) && 'wpsc-variation' == $_GET['taxonomy'] ){ $translations = &get_translations_for_domain( $domain ); return $translations->translate( 'The name is how it appears on your site.
Please read this carefully before starting to work with variations:
Variations in WP e-Commerce are divided into sets. For example set Color could have variations Red, Green, and Blue. To create a variation set simply enter the name and push Enter key on your keyboard or click Add New Variation/Set button in the bottom of this page. Then you will be able to select it from Variation set drop-down menu and add some variations to it. To add a new variation set just select None in Variation set drop-down menu.
', 'wpsc' ); //this will never happen, this is here only for gettex to pick up the translation return __( 'The name is how it appears on your site.
Please read this carefully before starting to work with variations:
Variations in WP e-Commerce are divided into sets. For example set Color could have variations Red, Green, and Blue. To create a set simply enter Name and push Enter key on your keyboard or click Add New Variation/Set button in the bottom of this page. Now you can select the variation set that you\'ve just created from Variation set drop-down menu and add some variations to it.
', 'wpsc' ); } return $translation; } function wpsc_attachment_fields( $form_fields, $post ) { $out = ''; if(isset($_GET["post_id"])) $parent_post = get_post( absint($_GET["post_id"]) ); else $parent_post = get_post( $post->post_parent ); if ( $parent_post->post_type == "wpsc-product" ) { //Unfortunate hack, as I'm not sure why the From Computer tab doesn't process filters the same way the Gallery does echo ' '; $size_names = array( 'small-product-thumbnail' => __( 'Default Product Thumbnail Size', 'wpsc' ), 'medium-single-product' => __( 'Single Product Image Size', 'wpsc' ), 'full' => __( 'Full Size', 'wpsc' ) ); $check = get_post_meta( $post->ID, '_wpsc_selected_image_size', true ); if ( !$check ) $check = 'medium-single-product'; // regenerate size metadata in case it's missing if ( ! image_get_intermediate_size( $post->ID, $check ) ) { $metadata = wp_get_attachment_metadata( $post->ID ); $file = get_attached_file( $post->ID ); $metadata = array_merge( wp_generate_attachment_metadata( $post->ID, $file ), $metadata ); wp_update_attachment_metadata( $post->ID, $metadata ); } //This loop attaches the custom thumbnail/single image sizes to this page foreach ( $size_names as $size => $name ) { $downsize = image_downsize( $post->ID, $size ); // is this size selectable? $enabled = ( $downsize[3] || 'full' == $size ); $css_id = "image-size-{$size}-{$post->ID}"; // if this size is the default but that's not available, don't select it $html = "
"; $html .= ""; // only show the dimensions if that choice is available if ( $enabled ) $html .= " "; $html .= '
'; $out .= $html; } unset( $form_fields['post_excerpt'], $form_fields['image_url'], $form_fields['post_content'], $form_fields['post_title'], $form_fields['url'], $form_fields['align'], $form_fields['image_alt']['helps'], $form_fields["image-size"] ); $form_fields['image_alt']['helps'] = __( 'Alt text for the product image, e.g. “Rockstar T-Shirt”', 'wpsc' ); $form_fields["image-size"] = array( 'label' => __( 'Single Product Page Thumbnail:', 'wpsc' ), 'input' => 'html', 'html' => $out, 'helps' => "" . __( 'This is the Thumbnail size that will be displayed on the Single Product page. You can change the default sizes under your store settings', 'wpsc' ) . "" ); //This is for the custom thumbnail size. $custom_thumb_size_w = get_post_meta( $post->ID, "_wpsc_custom_thumb_w", true ); $custom_thumb_size_h = get_post_meta( $post->ID, "_wpsc_custom_thumb_h", true ); $custom_thumb_html = " X "; $form_fields["wpsc_custom_thumb"] = array( "label" => __( "Products Page Thumbnail Size:", 'wpsc' ), "input" => "html", // this is default if "input" is omitted "helps" => "" . __( 'Custom thumbnail size for this image on the main Product Page', 'wpsc') . "", "html" => $custom_thumb_html ); } return $form_fields; } function wpsc_save_attachment_fields( $post, $attachment ) { if ( isset ( $attachment['wpsc_custom_thumb_w'] ) ) update_post_meta( $post['ID'], '_wpsc_custom_thumb_w', $attachment['wpsc_custom_thumb_w'] ); if ( isset ( $attachment['wpsc_custom_thumb_h'] ) ) update_post_meta( $post['ID'], '_wpsc_custom_thumb_h', $attachment['wpsc_custom_thumb_h'] ); if ( isset ( $attachment['image-size'] ) ) update_post_meta( $post['ID'], '_wpsc_selected_image_size', $attachment['image-size'] ); return $post; } function wpsc_media_upload_url( $form_action_url ) { $form_action_url = esc_url( add_query_arg( array( 'parent_page'=>'wpsc-edit-products' ) ) ); return $form_action_url; } function wpsc_gallery_css_mods() { print ''; print ' '; } function wpsc_media_upload_tab_gallery( $tabs ) { unset( $tabs['gallery'] ); $tabs['gallery'] = __( 'Product Image Gallery', 'wpsc' ); return $tabs; } function wpsc_filter_delete_text( $translation, $text, $domain ) { if ( 'Delete' == $text && isset( $_REQUEST['post_id'] ) && isset( $_REQUEST["parent_page"] ) ) { $translations = &get_translations_for_domain( $domain ); return $translations->translate( 'Trash' ) ; } return $translation; } function edit_multiple_image_gallery( $post ) { global $wpdb; //Make sure thumbnail isn't duplicated $siteurl = get_option( 'siteurl' ); if ( $post->ID > 0 ) { if ( has_post_thumbnail( $post->ID ) ) echo get_the_post_thumbnail( $post->ID, 'admin-product-thumbnails' ); $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'orderby' => 'menu_order', 'order' => 'ASC' ); $attached_images = (array)get_posts( $args ); if ( count( $attached_images ) > 0 ) { foreach ( $attached_images as $images ) { $attached_image = wp_get_attachment_image( $images->ID, 'admin-product-thumbnails' ); echo $attached_image. ' '; } } } } /** * wpsc_save_quickedit_box function * Saves input for the various meta in the quick edit boxes * * @todo UI * @todo Data validation / sanitization / security * @todo AJAX should probably return weight unit * @return $post_id (int) Post ID */ function wpsc_save_quickedit_box( $post_id ) { global $current_screen; if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || empty( $current_screen ) || $current_screen->id != 'edit-wpsc-product' || ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) return; $is_parent = ( bool )wpsc_product_has_children( $post_id ); $product_meta = get_post_meta( $post_id, '_wpsc_product_metadata', true ); $weight_unit = $product_meta["weight_unit"]; $weight = wpsc_convert_weight( $_POST["weight"], $weight_unit, "pound", true ); if ( isset( $product_meta["weight"] ) ) unset( $product_meta["weight"] ); $product_meta["weight"] = $weight; if ( !$is_parent ) { update_post_meta( $post_id, '_wpsc_product_metadata', $product_meta ); if(is_numeric($_POST['stock'])) update_post_meta( $post_id, '_wpsc_stock', $_POST['stock'] ); else update_post_meta( $post_id, '_wpsc_stock', '' ); update_post_meta( $post_id, '_wpsc_price', $_POST['price'] ); update_post_meta( $post_id, '_wpsc_special_price', $_POST['sale_price'] ); } if($_POST['sku'] == __('N/A', 'wpsc')) update_post_meta( $post_id, '_wpsc_sku', '' ); else update_post_meta( $post_id, '_wpsc_sku', $_POST['sku'] ); return $post_id; } /** * wpsc_quick_edit_boxes function * Creates inputs for the various meta in the quick edit boxes. * * @todo UI * @internal The post_id cannot be accessed here because this gets output at the very end * of the editor form, and injected within relevant rows using javascript. */ function wpsc_quick_edit_boxes( $col_name, $_screen_post_type = null ) { // Avoid outputting this on term edit screens. // See http://core.trac.wordpress.org/ticket/16392#comment:9 if ( current_filter() == 'quick_edit_custom_box' && $_screen_post_type == 'edit-tags' ) return; ?>