Make WordPress Core

Ticket #56810: 56810.patch

File 56810.patch, 1.9 KB (added by Chouby, 2 years ago)
  • src/wp-includes/block-editor.php

    diff --git src/wp-includes/block-editor.php src/wp-includes/block-editor.php
    index 1c67e6cc7a..ea6399fead 100644
    function get_block_editor_settings( array $custom_settings, $block_editor_contex 
    566566 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.
    567567 * @global WP_Styles  $wp_styles  The WP_Styles object for printing styles.
    568568 *
    569  * @param string[]                $preload_paths        List of paths to preload.
     569 * @param (string|string[])[]     $preload_paths        List of paths to preload.
    570570 * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
    571571 */
    572572function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
    function block_editor_rest_api_preload( array $preload_paths, $block_editor_cont 
    577577         *
    578578         * @since 5.8.0
    579579         *
    580          * @param string[]                $preload_paths        Array of paths to preload.
     580         * @param (string|string[])[]     $preload_paths        Array of paths to preload.
    581581         * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
    582582         */
    583583        $preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );
    function block_editor_rest_api_preload( array $preload_paths, $block_editor_cont 
    593593                 * @since 5.0.0
    594594                 * @deprecated 5.8.0 Use the {@see 'block_editor_rest_api_preload_paths'} filter instead.
    595595                 *
    596                  * @param string[] $preload_paths Array of paths to preload.
    597                  * @param WP_Post  $selected_post Post being edited.
     596                 * @param (string|string[])[] $preload_paths Array of paths to preload.
     597                 * @param WP_Post             $selected_post Post being edited.
    598598                 */
    599599                $preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' );
    600600        }