Make WordPress Core

Changeset 56845


Ignore:
Timestamp:
10/12/2023 01:25:48 PM (6 months ago)
Author:
desrosj
Message:

Editor: Move footnotes block hooks to default-filters.php

Follow up to [56839].

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r56839 r56845  
    20292029    return $arg;
    20302030}
    2031 
    2032 add_action( 'init', '_wp_footnotes_kses_init' );
    2033 add_action( 'set_current_user', '_wp_footnotes_kses_init' );
    2034 add_filter( 'force_filtered_html_on_import', '_wp_footnotes_force_filtered_html_on_import_filter', 999 );
  • trunk/src/wp-includes/default-filters.php

    r56793 r56845  
    614614
    615615/*
     616 * Block specific actions and filters.
     617 */
     618
     619// Footnotes Block.
     620add_action( 'init', '_wp_footnotes_kses_init' );
     621add_action( 'set_current_user', '_wp_footnotes_kses_init' );
     622add_filter( 'force_filtered_html_on_import', '_wp_footnotes_force_filtered_html_on_import_filter', 999 );
     623
     624/*
    616625 * Disable "Post Attributes" for wp_navigation post type. The attributes are
    617626 * also conditionally enabled when a site has custom templates. Block Theme
Note: See TracChangeset for help on using the changeset viewer.