WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/08/2017 06:24:16 PM (3 years ago)
Author:
westonruter
Message:

Customize: Show title input placeholders for widgets that have default titles when rendered.

Fixes #39909.
Props bor0, dlh, westonruter.

File:
1 edited

Legend:

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

    r39053 r40251  
    121121
    122122        echo '<p><label for="' . $title_id .'">' . __( 'Title:' ) . '</label>
    123             <input type="text" class="widefat" id="' . $title_id .'" name="' . $this->get_field_name( 'title' ) .'" value="' . $instance['title'] .'" />
     123            <input type="text" class="widefat" id="' . $title_id .'" name="' . $this->get_field_name( 'title' ) .'" value="' . $instance['title'] .'" placeholder="' . esc_attr__( '(Selected taxonomy name)' ) . '" />
    124124        </p>';
    125125
Note: See TracChangeset for help on using the changeset viewer.