Changeset 39175
- Timestamp:
- 11/09/2016 01:11:49 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r39016 r39175 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. -
trunk/src/wp-includes/class-wp-customize-manager.php
r39165 r39175 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 ) ); -
trunk/src/wp-includes/customize/class-wp-customize-custom-css-setting.php
r39151 r39175 47 47 * @var string 48 48 */ 49 public $capability = ' unfiltered_css';49 public $capability = 'edit_css'; 50 50 51 51 /** -
trunk/src/wp-includes/post.php
r38951 r39175 134 134 'can_export' => true, 135 135 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 136 'supports' => array( 'title' ),136 'supports' => array( 'title', 'revisions' ), 137 137 'capabilities' => array( 138 138 'delete_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', -
trunk/tests/phpunit/tests/customize/custom-css-setting.php
r39151 r39175 80 80 $this->assertEquals( 'custom_css', $this->setting->type ); 81 81 $this->assertEquals( 'twentysixteen', $this->setting->stylesheet ); 82 $this->assertEquals( ' unfiltered_css', $this->setting->capability );82 $this->assertEquals( 'edit_css', $this->setting->capability ); 83 83 84 84 $exception = null;
Note: See TracChangeset
for help on using the changeset viewer.