[wp-trac] [WordPress Trac] #55311: Style and JS URLs for some blocks are broken when using WP outside of the current prefix

WordPress Trac noreply at wordpress.org
Mon Mar 7 17:36:35 UTC 2022


#55311: Style and JS URLs for some blocks are broken when using WP outside of the
current prefix
---------------------------+------------------------------
 Reporter:  pgpagely       |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  5.9.1
 Severity:  major          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by Mamaduka):

 I was able to reproduce the issue.

 Based on my quick tests, the issue is fixed if I update the following code
 to use `realpath`.


 {{{
 $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) );
 }}}


 Cc. @aristath and @gziolo, since you're more familiar with this part of
 the codebase.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55311#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list