mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-09 03:30:06 +00:00
Coding Standards: Correct alignment in blocks.php and class-wp-rest-templates-controller.
See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@52345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -103,9 +103,9 @@ function register_block_script_handle( $metadata, $field_name ) {
|
||||
return false;
|
||||
}
|
||||
// Path needs to be normalized to work in Windows env.
|
||||
$wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC );
|
||||
$script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );
|
||||
$is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );
|
||||
$wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC );
|
||||
$script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );
|
||||
$is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );
|
||||
|
||||
$script_uri = $is_core_block ?
|
||||
includes_url( str_replace( $wpinc_path_norm, '', $script_path_norm ) ) :
|
||||
|
||||
Reference in New Issue
Block a user