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 8888 return 1024 * 1024 ;
8989} );
9090
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+
9195// Allow full HTML in term descriptions.
9296add_action ( 'init ' , 'jquery_unfiltered_html_for_term_descriptions ' );
9397add_action ( 'set_current_user ' , 'jquery_unfiltered_html_for_term_descriptions ' );
Original file line number Diff line number Diff line change 11<?php
22
33// Allow loading a Vimeo video on
4- // https://local. contribute.jquery.org/markup-conventions/
4+ // https://contribute.jquery.org/markup-conventions/
55add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
66 $ policy [ 'frame-src ' ] = "'self' player.vimeo.com " ;
77 return $ policy ;
Original file line number Diff line number Diff line change @@ -256,9 +256,6 @@ function jq_image_posted_on() {
256256 * Content Security Policy
257257 */
258258function jq_content_security_policy () {
259- if ( !JQUERY_STAGING ) {
260- return ;
261- }
262259 $ nonce = bin2hex ( random_bytes ( 8 ) );
263260 $ report_url = 'https://csp-report-api.openjs-foundation.workers.dev/ ' ;
264261 $ policy = array (
You can’t perform that action at this time.
0 commit comments