Make WordPress Core

Ticket #58186: patch-diff.githubusercontent.com_raw_WordPress_wordpress-develop_pull_4373.diff

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

Patch

  • src/wp-includes/blocks.php

    diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
    index 49f18ca46f8f..0abbfd3a9705 100644
    a b function register_block_script_handle( $metadata, $field_name, $index = 0 ) { 
    134134                $wpinc_path_norm = wp_normalize_path( realpath( ABSPATH . WPINC ) );
    135135        }
    136136
    137         $theme_path_norm  = wp_normalize_path( get_theme_file_path() );
     137        $theme_path_norm  = wp_normalize_path( realpath( get_theme_file_path() ) );
    138138        $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );
    139139
    140140        $is_core_block  = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );