From d7cb2f77065ad0a483396a8e034472b58530b655 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 8 Mar 2017 18:25:44 +0000 Subject: [PATCH] Customize: Show title input placeholders for widgets that have default titles when rendered. Fixes #39909. Props bor0, dlh, westonruter. Built from https://develop.svn.wordpress.org/trunk@40251 git-svn-id: http://core.svn.wordpress.org/trunk@40173 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widgets.php | 2 +- wp-includes/widgets/class-wp-widget-archives.php | 2 +- wp-includes/widgets/class-wp-widget-categories.php | 2 +- wp-includes/widgets/class-wp-widget-meta.php | 2 +- wp-includes/widgets/class-wp-widget-pages.php | 2 +- wp-includes/widgets/class-wp-widget-recent-comments.php | 2 +- wp-includes/widgets/class-wp-widget-recent-posts.php | 2 +- wp-includes/widgets/class-wp-widget-tag-cloud.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 02630849b2..eb34ad03f2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40241'; +$wp_version = '4.8-alpha-40251'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 1abadfb186..0bbcba9f00 100644 --- a/wp-includes/widgets.php +++ b/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/wp-includes/widgets/class-wp-widget-categories.php b/wp-includes/widgets/class-wp-widget-categories.php index 2e52423d12..fff0501544 100644 --- a/wp-includes/widgets/class-wp-widget-categories.php +++ b/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/wp-includes/widgets/class-wp-widget-meta.php b/wp-includes/widgets/class-wp-widget-meta.php index e4a3b51ac9..0172d56c76 100644 --- a/wp-includes/widgets/class-wp-widget-meta.php +++ b/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/wp-includes/widgets/class-wp-widget-recent-comments.php b/wp-includes/widgets/class-wp-widget-recent-comments.php index fb78e88c79..c5657d25da 100644 --- a/wp-includes/widgets/class-wp-widget-recent-comments.php +++ b/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/wp-includes/widgets/class-wp-widget-recent-posts.php b/wp-includes/widgets/class-wp-widget-recent-posts.php index 9483b97e27..28cd35827a 100644 --- a/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/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/wp-includes/widgets/class-wp-widget-tag-cloud.php b/wp-includes/widgets/class-wp-widget-tag-cloud.php index b4adabd039..afe6b6d754 100644 --- a/wp-includes/widgets/class-wp-widget-tag-cloud.php +++ b/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' );