Make WordPress Core


Ignore:
Timestamp:
09/23/2024 06:50:27 AM (23 months ago)
Author:
noisysocks
Message:

Editor: Update packages for 6.7 Beta 1.

Syncs @wordpress/* packages to the wp-6.7 npm tag.

See #61906.

File:
1 edited

Legend:

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

    r59072 r59079  
    2020        // If it's interactive, enqueue the script module and add the directives.
    2121        if ( ! empty( $attributes['displayPreview'] ) ) {
    22                 $suffix = wp_scripts_get_suffix();
    23                 if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
    24                         $module_url = gutenberg_url( '/build-module/block-library/file/view.min.js' );
    25                 }
    26 
    27                 wp_register_script_module(
    28                         '@wordpress/block-library/file',
    29                         isset( $module_url ) ? $module_url : includes_url( "blocks/file/view{$suffix}.js" ),
    30                         array( '@wordpress/interactivity' ),
    31                         defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
    32                 );
    33                 wp_enqueue_script_module( '@wordpress/block-library/file' );
     22                wp_enqueue_script_module( '@wordpress/block-library/file/view' );
    3423
    3524                $processor = new WP_HTML_Tag_Processor( $content );
Note: See TracChangeset for help on using the changeset viewer.