Make WordPress Core

Opened 12 months ago

Last modified 8 months ago

#58186 new defect (bug)

Block Theme Detection is broken due to symlinks

Reported by: yolawo's profile yolawo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.2
Component: Themes Keywords: has-patch
Focuses: Cc:


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.

Attachments (1)

patch-diff.githubusercontent.com_raw_WordPress_wordpress-develop_pull_4373.diff (706 bytes) - added by yolawo 10 months ago.

Download all attachments as: .zip

Change History (3)

This ticket was mentioned in PR #4373 on WordPress/wordpress-develop by fstrelczuk.

12 months ago

  • Keywords has-patch added; needs-patch removed


Fixes theme block detection by adding a missing realpath.

Trac ticket:

#2 @yolawo
8 months ago

The same bug exists now in 6.3. What am I supposed to do, that this Bug will be fixed / my path will be applied? Would be great to know before I create a fix for 6.3.

Note: See TracTickets for help on using tickets.