WordPress.org

Make WordPress Core

Changeset 51288


Ignore:
Timestamp:
06/30/2021 06:24:39 PM (3 months ago)
Author:
desrosj
Message:

Script Loader: Revert [51267].

This was missed in [51268] when reverting [51259-51260,51265].

Props pbiron.
See #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r51284 r51288  
    7979    }
    8080
    81     $script_handle = generate_block_asset_handle( $metadata['name'], $field_name );
    82 
    83     if ( 'viewScript' === $field_name ) {
    84         $script_path = str_replace( '.min.js', '.js', $script_path );
    85     }
    86 
     81    $script_handle     = generate_block_asset_handle( $metadata['name'], $field_name );
    8782    $script_asset_path = realpath(
    8883        dirname( $metadata['file'] ) . '/' .
Note: See TracChangeset for help on using the changeset viewer.