Remove old code

This commit is contained in:
Mike Jolley 2016-02-18 12:57:03 +00:00
parent 19781fb91b
commit 47a0762a4a
1 changed files with 0 additions and 19 deletions

View File

@ -81,7 +81,6 @@ class WC_Admin_Post_Types {
// Edit post screens
add_filter( 'enter_title_here', array( $this, 'enter_title_here' ), 1, 2 );
add_action( 'edit_form_after_title', array( $this, 'edit_form_after_title' ) );
add_filter( 'media_view_strings', array( $this, 'change_insert_into_post' ) );
add_filter( 'default_hidden_meta_boxes', array( $this, 'hidden_meta_boxes' ), 10, 2 );
add_action( 'post_submitbox_misc_actions', array( $this, 'product_data_visibility' ) );
@ -2099,24 +2098,6 @@ class WC_Admin_Post_Types {
}
}
/**
* Change label for insert buttons.
* @param array $strings
* @return array
*/
public function change_insert_into_post( $strings ) {
global $wp_version, $post_type;
if ( version_compare( $wp_version, '4.4', '<' ) && ( in_array( $post_type, array( 'product', 'shop_coupon' ) ) || in_array( $post_type, wc_get_order_types() ) ) ) {
$obj = get_post_type_object( $post_type );
$strings['insertIntoPost'] = sprintf( __( 'Insert into %s', 'woocommerce' ), $obj->labels->singular_name );
$strings['uploadedToThisPost'] = sprintf( __( 'Uploaded to this %s', 'woocommerce' ), $obj->labels->singular_name );
}
return $strings;
}
/**
* Hidden default Meta-Boxes.
* @param array $hidden