Changes between Initial Version and Version 1 of Ticket #41994, comment 24
- Timestamp:
- 10/04/2017 04:05:34 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #41994, comment 24
initial v1 1 1 Or, alternatively, this condition could be based on whether or not `$this->l10n['replace_media']` is populated to begin with in PHP. So then `WP_Media_Widget_Gallery` could define `replace_media` as `null` and then the template could do: 2 2 3 {{{ 3 {{{#!php 4 4 <?php if ( ! empty( $this->l10n['replace_media'] ) ) : ?> 5 5 <button type="button" class="button change-media select-media selected">