From 487af08ce70068e5039a22382ae83460e8306635 Mon Sep 17 00:00:00 2001
From: denis <denis@deniska>
Date: May 5, 2017 10:30:47 PM

Replaced Additional CSS default value to placeholder

diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index 5fb2d76..cea83f1 100644
--- a/src/wp-includes/class-wp-customize-manager.php
+++ b/src/wp-includes/class-wp-customize-manager.php
@@ -4149,8 +4149,7 @@
 		) );
 
 		$custom_css_setting = new WP_Customize_Custom_CSS_Setting( $this, sprintf( 'custom_css[%s]', get_stylesheet() ), array(
-			'capability' => 'edit_css',
-			'default' => sprintf( "/*\n%s\n*/", __( "You can add your own CSS here.\n\nClick the help icon above to learn more." ) ),
+			'capability' => 'edit_css'
 		) );
 		$this->add_setting( $custom_css_setting );
 
@@ -4160,6 +4159,7 @@
 			'settings' => array( 'default' => $custom_css_setting->id ),
 			'input_attrs' => array(
 				'class' => 'code', // Ensures contents displayed as LTR instead of RTL.
+				'placeholder' => __( 'You can add your own CSS here.\n\nClick the help icon above to learn more.' ),
 			),
 		) );
 	}
diff --git a/src/wp-includes/customize/class-wp-customize-custom-css-setting.php b/src/wp-includes/customize/class-wp-customize-custom-css-setting.php
index d694395..362183c 100644
--- a/src/wp-includes/customize/class-wp-customize-custom-css-setting.php
+++ b/src/wp-includes/customize/class-wp-customize-custom-css-setting.php
@@ -140,9 +140,6 @@
 		if ( $post ) {
 			$value = $post->post_content;
 		}
-		if ( empty( $value ) ) {
-			$value = $this->default;
-		}
 
 		/** This filter is documented in wp-includes/class-wp-customize-setting.php */
 		$value = apply_filters( "customize_value_{$id_base}", $value, $this );
diff --git a/tests/phpunit/tests/customize/custom-css-setting.php b/tests/phpunit/tests/customize/custom-css-setting.php
index 3dea39e..b9d6ac0 100644
--- a/tests/phpunit/tests/customize/custom-css-setting.php
+++ b/tests/phpunit/tests/customize/custom-css-setting.php
@@ -109,10 +109,6 @@
 	 * @covers WP_Customize_Custom_CSS_Setting::update()
 	 */
 	function test_crud() {
-
-		$this->setting->default = '/* Hello World */';
-		$this->assertEquals( $this->setting->default, $this->setting->value() );
-
 		$this->assertNull( wp_get_custom_css_post() );
 		$this->assertNull( wp_get_custom_css_post( $this->setting->stylesheet ) );
 		$this->assertNull( wp_get_custom_css_post( 'twentyten' ) );
