Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41994, comment 24


Ignore:
Timestamp:
10/04/2017 04:05:34 PM (6 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41994, comment 24

    initial v1  
    11Or, 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:
    22
    3 {{{
     3{{{#!php
    44<?php if ( ! empty( $this->l10n['replace_media'] ) ) : ?>
    55        <button type="button" class="button change-media select-media selected">