improved the WC_Admin_Post_Types::media_view_strings()
This commit is contained in:
parent
89a0c82b54
commit
8464ad0b17
|
@ -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' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue