Skip to content

Commit d538cab

Browse files
committed
User must have the unfiltered_html capability. Note: On multisite only super-admin has this capability.
1 parent 242e1f7 commit d538cab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

additional-javascript.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ function register_post_type_javascript() {
5353
'delete_published_posts' => 'edit_theme_options',
5454
'delete_private_posts' => 'edit_theme_options',
5555
'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',
6060
'read_post' => 'read',
6161
'read_private_posts' => 'read',
6262
'publish_posts' => 'edit_theme_options',
@@ -94,7 +94,7 @@ function register_additional_javascript( $wp_customize ) {
9494
require_once dirname( __FILE__ ) . '/class-custom-javascript-control.php';
9595
$custom_javascript_setting = new Soderlind_Customize_Custom_JavaScript_Setting(
9696
$wp_customize, sprintf( 'custom_javascript[%s]', get_stylesheet() ), array(
97-
'capability' => 'edit_css',
97+
'capability' => 'unfiltered_html',
9898
'default' => '',
9999
)
100100
);

0 commit comments

Comments
 (0)