File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 88
88
return 1024 * 1024 ;
89
89
} );
90
90
91
+ // Disable the new image sizes feature.
92
+ // It adds a style tag that would require a CSP exception.
93
+ add_filter ( 'wp_img_tag_add_auto_sizes ' , '__return_false ' );
94
+
91
95
// Allow full HTML in term descriptions.
92
96
add_action ( 'init ' , 'jquery_unfiltered_html_for_term_descriptions ' );
93
97
add_action ( 'set_current_user ' , 'jquery_unfiltered_html_for_term_descriptions ' );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
// Allow loading a Vimeo video on
4
- // https://local. contribute.jquery.org/markup-conventions/
4
+ // https://contribute.jquery.org/markup-conventions/
5
5
add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
6
6
$ policy [ 'frame-src ' ] = "'self' player.vimeo.com " ;
7
7
return $ policy ;
Original file line number Diff line number Diff line change @@ -256,9 +256,6 @@ function jq_image_posted_on() {
256
256
* Content Security Policy
257
257
*/
258
258
function jq_content_security_policy () {
259
- if ( !JQUERY_STAGING ) {
260
- return ;
261
- }
262
259
$ nonce = bin2hex ( random_bytes ( 8 ) );
263
260
$ report_url = 'https://csp-report-api.openjs-foundation.workers.dev/ ' ;
264
261
$ policy = array (
You can’t perform that action at this time.
0 commit comments