improved the WC_Admin_Post_Types::media_view_strings()

This commit is contained in:
claudiosmweb 2014-09-15 22:10:20 -03:00
parent 89a0c82b54
commit 8464ad0b17
1 changed files with 1 additions and 3 deletions

View File

@ -1870,9 +1870,7 @@ class WC_Admin_Post_Types {
* @return array * @return array
*/ */
public function media_view_strings( $strings = array(), $post = null ) { public function media_view_strings( $strings = array(), $post = null ) {
$screen = get_current_screen(); if ( isset( $post->post_type ) && 'product' == $post->post_type ) {
if ( 'product' == $screen->id ) {
$strings['setFeaturedImageTitle'] = __( 'Set product image', 'woocommerce' ); $strings['setFeaturedImageTitle'] = __( 'Set product image', 'woocommerce' );
$strings['setFeaturedImage'] = __( 'Set product image', 'woocommerce' ); $strings['setFeaturedImage'] = __( 'Set product image', 'woocommerce' );
} }