@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | function enqueue_scripts( $hook ) { |
97 | 97 | |
98 | - if ( ! in_array( $hook, [ 'post.php', 'post-new.php' ], true ) ) { |
|
98 | + if ( ! in_array( $hook, ['post.php', 'post-new.php'], true ) ) { |
|
99 | 99 | return; |
100 | 100 | } |
101 | 101 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | 'mozallowfullscreen' => true, |
157 | 157 | 'style' => true, |
158 | 158 | ]; |
159 | - $allowed_html['input'] = [ |
|
159 | + $allowed_html['input'] = [ |
|
160 | 160 | 'type' => true, |
161 | 161 | 'class' => true, |
162 | 162 | 'name' => true, |
@@ -168,8 +168,8 @@ discard block |
||
168 | 168 | // Remove jetpack shortcode module filters which is converting this shortcode to anchor tag when jetpack is enabled. |
169 | 169 | // ref: https://github.com/Automattic/jetpack/blob/cb04cfc4479515f12945256555bbab1192711c57/modules/shortcodes/class.filter-embedded-html-objects.php#L11-L12. |
170 | 170 | if ( class_exists( 'Filter_Embedded_HTML_Objects' ) ) { |
171 | - remove_filter( 'pre_kses', [ 'Filter_Embedded_HTML_Objects', 'filter' ], 11 ); |
|
172 | - remove_filter( 'pre_kses', [ 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ], 100 ); |
|
171 | + remove_filter( 'pre_kses', ['Filter_Embedded_HTML_Objects', 'filter'], 11 ); |
|
172 | + remove_filter( 'pre_kses', ['Filter_Embedded_HTML_Objects', 'maybe_create_links'], 100 ); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | ?> |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | </button> |
188 | 188 | <div class="brightcove-video-preview"> |
189 | 189 | <?php |
190 | - if( ! empty( $bc_video_args['video_id'] ) ) { |
|
190 | + if ( ! empty( $bc_video_args['video_id'] ) ) { |
|
191 | 191 | echo wp_kses( BC_Video_Shortcode::bc_video( $bc_video_args ), $allowed_html ); |
192 | 192 | echo '<a href="#" class="bc-remove-video">Remove brightcove video</a>'; |
193 | 193 | } |
@@ -249,8 +249,8 @@ discard block |
||
249 | 249 | |
250 | 250 | // Enable jetpack embed filter. |
251 | 251 | if ( class_exists( 'Filter_Embedded_HTML_Objects' ) ) { |
252 | - add_filter( 'pre_kses', [ 'Filter_Embedded_HTML_Objects', 'filter' ], 11 ); |
|
253 | - add_filter( 'pre_kses', [ 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ], 100 ); |
|
252 | + add_filter( 'pre_kses', ['Filter_Embedded_HTML_Objects', 'filter'], 11 ); |
|
253 | + add_filter( 'pre_kses', ['Filter_Embedded_HTML_Objects', 'maybe_create_links'], 100 ); |
|
254 | 254 | } |
255 | 255 | } |
256 | 256 |