From 48209c926fd96dbfd979e56dc938efb6b542f125 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 5 Oct 2017 03:13:49 +0000 Subject: [PATCH] Widgets: Remove "Replace Gallery" button from Gallery widget since redundant with "Edit Gallery". Props Presskopp, juhise, melchoyce. See #41914. Fixes #41994. Built from https://develop.svn.wordpress.org/trunk@41772 git-svn-id: http://core.svn.wordpress.org/trunk@41606 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-media-gallery.php | 4 ++-- wp-includes/widgets/class-wp-widget-media.php | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 457044472c..406f005c62 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41771'; +$wp_version = '4.9-alpha-41772'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-media-gallery.php b/wp-includes/widgets/class-wp-widget-media-gallery.php index 5c07c4fc6b..4bce321c35 100644 --- a/wp-includes/widgets/class-wp-widget-media-gallery.php +++ b/wp-includes/widgets/class-wp-widget-media-gallery.php @@ -29,8 +29,8 @@ class WP_Widget_Media_Gallery extends WP_Widget_Media { $this->l10n = array_merge( $this->l10n, array( 'no_media_selected' => __( 'No images selected' ), - 'add_media' => _x( 'Select Images', 'label for button in the gallery widget; should not be longer than ~13 characters long' ), - 'replace_media' => _x( 'Replace Gallery', 'label for button in the gallery widget; should not be longer than ~13 characters long' ), + 'add_media' => _x( 'Add Images', 'label for button in the gallery widget; should not be longer than ~13 characters long' ), + 'replace_media' => '', 'edit_media' => _x( 'Edit Gallery', 'label for button in the gallery widget; should not be longer than ~13 characters long' ), ) ); } diff --git a/wp-includes/widgets/class-wp-widget-media.php b/wp-includes/widgets/class-wp-widget-media.php index 58ad4647ac..864d7568d8 100644 --- a/wp-includes/widgets/class-wp-widget-media.php +++ b/wp-includes/widgets/class-wp-widget-media.php @@ -403,9 +403,11 @@ abstract class WP_Widget_Media extends WP_Widget { + l10n['replace_media'] ) ) : ?> +