diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index 49660bd5c9c..77a8ee0f6ef 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -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