[wp-trac] [WordPress Trac] #58186: Block Theme Detection is broken due to symlinks

WordPress Trac noreply at wordpress.org
Mon Apr 24 15:27:03 UTC 2023


#58186: Block Theme Detection is broken due to symlinks
--------------------------+-----------------------------
 Reporter:  yolawo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  6.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 In file wp-includes/blocks.php line 137 the $theme_path_norm calculation
 is missing a realpath call.

 I'm using a bitnami index with some symlinks and the theme block detection
 is broken.

 In my example the vars have the following values:

 $theme_path_norm = "/opt/bitnami/..."
 $script_path_norm = "/bitnami/..."

 Thanks in advance.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58186>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list