From 34759c5d654d4cebae3ceb603fc04107dd7623b1 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 8 Mar 2017 18:24:16 +0000 Subject: [PATCH] Customize: Show title input placeholders for widgets that have default titles when rendered. Fixes #39909. Props bor0, dlh, westonruter. git-svn-id: https://develop.svn.wordpress.org/trunk@40251 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets.php | 2 +- src/wp-includes/widgets/class-wp-widget-archives.php | 2 +- src/wp-includes/widgets/class-wp-widget-categories.php | 2 +- src/wp-includes/widgets/class-wp-widget-meta.php | 2 +- src/wp-includes/widgets/class-wp-widget-pages.php | 2 +- src/wp-includes/widgets/class-wp-widget-recent-comments.php | 2 +- src/wp-includes/widgets/class-wp-widget-recent-posts.php | 2 +- src/wp-includes/widgets/class-wp-widget-tag-cloud.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 1abadfb186..0bbcba9f00 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -1352,7 +1352,7 @@ function wp_widget_rss_form( $args, $inputs = null ) {

-

+

+

id="get_field_id('dropdown'); ?>" name="get_field_name('dropdown'); ?>" />
diff --git a/src/wp-includes/widgets/class-wp-widget-categories.php b/src/wp-includes/widgets/class-wp-widget-categories.php index 2e52423d12..fff0501544 100644 --- a/src/wp-includes/widgets/class-wp-widget-categories.php +++ b/src/wp-includes/widgets/class-wp-widget-categories.php @@ -158,7 +158,7 @@ class WP_Widget_Categories extends WP_Widget { $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; ?>

-

+

/>
diff --git a/src/wp-includes/widgets/class-wp-widget-meta.php b/src/wp-includes/widgets/class-wp-widget-meta.php index e4a3b51ac9..0172d56c76 100644 --- a/src/wp-includes/widgets/class-wp-widget-meta.php +++ b/src/wp-includes/widgets/class-wp-widget-meta.php @@ -108,7 +108,7 @@ class WP_Widget_Meta extends WP_Widget { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = sanitize_text_field( $instance['title'] ); ?> -

+

- +

diff --git a/src/wp-includes/widgets/class-wp-widget-recent-comments.php b/src/wp-includes/widgets/class-wp-widget-recent-comments.php index fb78e88c79..c5657d25da 100644 --- a/src/wp-includes/widgets/class-wp-widget-recent-comments.php +++ b/src/wp-includes/widgets/class-wp-widget-recent-comments.php @@ -157,7 +157,7 @@ class WP_Widget_Recent_Comments extends WP_Widget { $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5; ?>

-

+

diff --git a/src/wp-includes/widgets/class-wp-widget-recent-posts.php b/src/wp-includes/widgets/class-wp-widget-recent-posts.php index 9483b97e27..28cd35827a 100644 --- a/src/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/src/wp-includes/widgets/class-wp-widget-recent-posts.php @@ -130,7 +130,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { $show_date = isset( $instance['show_date'] ) ? (bool) $instance['show_date'] : false; ?>

-

+

diff --git a/src/wp-includes/widgets/class-wp-widget-tag-cloud.php b/src/wp-includes/widgets/class-wp-widget-tag-cloud.php index b4adabd039..afe6b6d754 100644 --- a/src/wp-includes/widgets/class-wp-widget-tag-cloud.php +++ b/src/wp-includes/widgets/class-wp-widget-tag-cloud.php @@ -120,7 +120,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget { $instance['title'] = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; echo '

- +

'; $taxonomies = get_taxonomies( array( 'show_tagcloud' => true ), 'object' );