Make WordPress Core

Changeset 51291


Ignore:
Timestamp:
06/30/2021 06:47:04 PM (3 years ago)
Author:
desrosj
Message:

Script Loader: Revert [51267].

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

Props pbiron.
Merges [51288] to the 5.8 branch.
See #53397.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/blocks.php

    r51268 r51291  
    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.