Ticket #38672: 38672.diff
File 38672.diff, 2.4 KB (added by , 8 years ago) |
---|
-
wp-includes/capabilities.php
320 320 else 321 321 $caps[] = 'do_not_allow'; 322 322 break; 323 case ' unfiltered_css' :323 case 'edit_css' : 324 324 case 'unfiltered_html' : 325 325 // Disallow unfiltered_html for all users, even admins and super admins. 326 326 if ( defined( 'DISALLOW_UNFILTERED_HTML' ) && DISALLOW_UNFILTERED_HTML ) -
wp-includes/class-wp-customize-manager.php
3598 3598 ) ); 3599 3599 3600 3600 $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', 3602 3602 'default' => sprintf( "/*\n%s\n*/", __( "You can add your own CSS here.\n\nClick the help icon above to learn more." ) ), 3603 3603 ) ); 3604 3604 $this->add_setting( $custom_css_setting ); -
wp-includes/customize/class-wp-customize-custom-css-setting.php
46 46 * 47 47 * @var string 48 48 */ 49 public $capability = ' unfiltered_css';49 public $capability = 'edit_css'; 50 50 51 51 /** 52 52 * Stylesheet -
wp-includes/post.php
140 140 'delete_published_posts' => 'edit_theme_options', 141 141 'delete_private_posts' => 'edit_theme_options', 142 142 'delete_others_posts' => 'edit_theme_options', 143 'edit_post' => ' unfiltered_css',144 'edit_posts' => ' unfiltered_css',145 'edit_others_posts' => ' unfiltered_css',146 'edit_published_posts' => ' unfiltered_css',143 'edit_post' => 'edit_css', 144 'edit_posts' => 'edit_css', 145 'edit_others_posts' => 'edit_css', 146 'edit_published_posts' => 'edit_css', 147 147 'read_post' => 'read', 148 148 'read_private_posts' => 'read', 149 149 'publish_posts' => 'edit_theme_options',