Make WordPress Core

Opened 5 months ago

Last modified 3 weeks 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:

Description

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 3 months ago.
Patch

Download all attachments as: .zip

Change History (3)

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


5 months ago
#1

  • Keywords has-patch added; needs-patch removed

Fixes:

Fixes theme block detection by adding a missing realpath.

Trac ticket: https://core.trac.wordpress.org/ticket/58186

#2 @yolawo
3 weeks 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.