From 02ce8db6de5d26b3fba7609fdc9d36ef377d6b20 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 25 Oct 2016 22:52:10 +0000 Subject: [PATCH] Customize: Add explanatory note for `custom_css` control via `textarea[placeholder]` and expose any defined `input_attrs` on such `textarea` controls. Props melchoyce, westonruter, celloexpressions. See #37439. Fixes #38493. Built from https://develop.svn.wordpress.org/trunk@38933 git-svn-id: http://core.svn.wordpress.org/trunk@38876 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-control.php | 2 +- wp-includes/class-wp-customize-manager.php | 3 +++ wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index c45af67d8f..7bed232913 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -532,7 +532,7 @@ class WP_Customize_Control { if ( ! empty( $this->description ) ) : ?> description; ?> - + 'textarea', 'section' => 'custom_css', 'settings' => array( 'default' => $custom_css_setting->id ), + 'input_attrs' => array( + 'placeholder' => __( "/*\nYou can add your own CSS here.\n\nClick the help icon above to learn more.\n*/" ), + ) ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4feabe77e0..a6706c84f4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38932'; +$wp_version = '4.7-alpha-38933'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.