Make WordPress Core


Ignore:
Timestamp:
11/09/2016 01:11:49 AM (9 years ago)
Author:
westonruter
Message:

Customize: Rename unfiltered_css meta capability to edit_css; add revisions support to custom_css post type.

Props lukecavanagh, georgestephanis, westonruter.
See #38672, #35395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r39165 r39175  
    35993599
    36003600        $custom_css_setting = new WP_Customize_Custom_CSS_Setting( $this, sprintf( 'custom_css[%s]', get_stylesheet() ), array(
    3601             'capability' => 'unfiltered_css',
     3601            'capability' => 'edit_css',
    36023602            'default' => sprintf( "/*\n%s\n*/", __( "You can add your own CSS here.\n\nClick the help icon above to learn more." ) ),
    36033603        ) );
Note: See TracChangeset for help on using the changeset viewer.