File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 3535}
3636unset( $ sites , $ options , $ option );
3737
38+ // Ensure that the local port is used for template assets, if it exists.
39+ add_filter ( 'theme_root_uri ' , function ( $ value ) {
40+ // All environment variables are set either in the local wp-config.php or via puppet.
41+ // Staging sites set JQUERY_STAGING to the boolean `true` instead of 'local'.
42+ // Production sites set it to false.
43+ if ( JQUERY_STAGING === 'local ' ) {
44+ // Don't specify http vs https here, as the site may be accessed via either.
45+ $ siteurl = '// ' . strtr ( JQUERY_STAGING_FORMAT , [ '%s ' => JQUERY_LIVE_SITE ] );
46+ $ value = $ siteurl . '/wp-content/themes ' ;
47+ }
48+ return $ value ;
49+ });
50+
3851// Remove misc links from <head> on non-blog sites
3952if ( !get_option ( 'jquery_is_blog ' ) ) {
4053 remove_action ( 'wp_head ' , 'feed_links ' , 2 );
You can’t perform that action at this time.
0 commit comments