Make WordPress Core


Ignore:
Timestamp:
10/05/2017 03:12:59 AM (8 years ago)
Author:
westonruter
Message:

Widgets: Remove "Replace Gallery" button from Gallery widget since redundant with "Edit Gallery".

Props Presskopp, juhise, melchoyce.
See #41914.
Fixes #41994.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-media.php

    r41640 r41772  
    404404                    <?php echo esc_html( $this->l10n['edit_media'] ); ?>
    405405                </button>
     406            <?php if ( ! empty( $this->l10n['replace_media'] ) ) : ?>
    406407                <button type="button" class="button change-media select-media selected">
    407408                    <?php echo esc_html( $this->l10n['replace_media'] ); ?>
    408409                </button>
     410            <?php endif; ?>
    409411                <button type="button" class="button select-media not-selected">
    410412                    <?php echo esc_html( $this->l10n['add_media'] ); ?>
Note: See TracChangeset for help on using the changeset viewer.