@@ -53,10 +53,10 @@ function register_post_type_javascript() {
53
53
'delete_published_posts ' => 'edit_theme_options ' ,
54
54
'delete_private_posts ' => 'edit_theme_options ' ,
55
55
'delete_others_posts ' => 'edit_theme_options ' ,
56
- 'edit_post ' => 'edit_css ' ,
57
- 'edit_posts ' => 'edit_css ' ,
58
- 'edit_others_posts ' => 'edit_css ' ,
59
- 'edit_published_posts ' => 'edit_css ' ,
56
+ 'edit_post ' => 'unfiltered_html ' ,
57
+ 'edit_posts ' => 'unfiltered_html ' ,
58
+ 'edit_others_posts ' => 'unfiltered_html ' ,
59
+ 'edit_published_posts ' => 'unfiltered_html ' ,
60
60
'read_post ' => 'read ' ,
61
61
'read_private_posts ' => 'read ' ,
62
62
'publish_posts ' => 'edit_theme_options ' ,
@@ -94,7 +94,7 @@ function register_additional_javascript( $wp_customize ) {
94
94
require_once dirname ( __FILE__ ) . '/class-custom-javascript-control.php ' ;
95
95
$ custom_javascript_setting = new Soderlind_Customize_Custom_JavaScript_Setting (
96
96
$ wp_customize , sprintf ( 'custom_javascript[%s] ' , get_stylesheet () ), array (
97
- 'capability ' => 'edit_css ' ,
97
+ 'capability ' => 'unfiltered_html ' ,
98
98
'default ' => '' ,
99
99
)
100
100
);
0 commit comments