Make WordPress Core


Ignore:
Timestamp:
11/07/2016 06:12:28 PM (10 years ago)
Author:
westonruter
Message:

Customize: Move Custom CSS control placeholder help text to setting default value.

The WP_Customize_Custom_CSS_Setting::value() method now returns the default if wp_get_custom_css() returns empty.

Props westonruter, afercia, helen.
See #35395.
Fixes #38685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/custom-css-setting.php

    r39020 r39151  
    102102
    103103        /**
    104          * Test WP_Customize_Custom_CSS_Setting::update().
     104         * Test crud methods on WP_Customize_Custom_CSS_Setting.
    105105         *
    106106         * @covers wp_get_custom_css()
     
    110110         */
    111111        function test_crud() {
     112
     113                $this->setting->default = '/* Hello World */';
     114                $this->assertEquals( $this->setting->default, $this->setting->value() );
     115
    112116                $original_css = 'body { color: black; }';
    113117                $this->factory()->post->create( array(
Note: See TracChangeset for help on using the changeset viewer.