Make WordPress Core


Ignore:
Timestamp:
02/09/2026 07:47:58 PM (6 months ago)
Author:
ellatrix
Message:

Gutenberg ref update.

Updates unit tests to account for:

Updates the REST API posts controller's excerpt filter to account for "Post Excerpt Block: Fix length limits for both Editor and Front and fix ellipsis consistency" (https://github.com/WordPress/gutenberg/pull/74140/changes#r2783014013).

Developed in https://github.com/WordPress/wordpress-develop/pull/10865.

Props ellatrix, scruffian, desrosj.

See #64595.

---

I've included a log of the Gutenberg changes with the following command:

git log --reverse --format="- %s" 7bf80ea84eb8b62eceb1bb3fe82e42163673ca79..59a08c5496008ca88f4b6b86f38838c3612d88c8 | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/unregister-blocks-hooks.php

    r61009 r61605  
    11<?php
    22
    3 // This file was autogenerated by tools/release/sync-stable-blocks.js, do not change manually!
    4 remove_action( 'init', 'register_block_core_accordion' );
    5 remove_action( 'init', 'register_block_core_accordion_item' );
    6 remove_action( 'init', 'register_block_core_archives' );
    7 remove_action( 'init', 'register_block_core_avatar' );
    8 remove_action( 'init', 'register_block_core_block' );
    9 remove_action( 'init', 'register_block_core_button' );
    10 remove_action( 'init', 'register_block_core_calendar' );
    11 remove_action( 'init', 'register_block_core_categories' );
    12 remove_action( 'init', 'register_block_core_comment_author_name' );
    13 remove_action( 'init', 'register_block_core_comment_content' );
    14 remove_action( 'init', 'register_block_core_comment_date' );
    15 remove_action( 'init', 'register_block_core_comment_edit_link' );
    16 remove_action( 'init', 'register_block_core_comment_reply_link' );
    17 remove_action( 'init', 'register_block_core_comment_template' );
    18 remove_action( 'init', 'register_block_core_comments' );
    19 remove_action( 'init', 'register_block_core_comments_pagination' );
    20 remove_action( 'init', 'register_block_core_comments_pagination_next' );
    21 remove_action( 'init', 'register_block_core_comments_pagination_numbers' );
    22 remove_action( 'init', 'register_block_core_comments_pagination_previous' );
    23 remove_action( 'init', 'register_block_core_comments_title' );
    24 remove_action( 'init', 'register_block_core_cover' );
    25 remove_action( 'init', 'register_block_core_file' );
    26 remove_action( 'init', 'register_block_core_footnotes' );
    27 remove_action( 'init', 'register_block_core_gallery' );
    28 remove_action( 'init', 'register_block_core_heading' );
    29 remove_action( 'init', 'register_block_core_home_link' );
    30 remove_action( 'init', 'register_block_core_image' );
    31 remove_action( 'init', 'register_block_core_latest_comments' );
    32 remove_action( 'init', 'register_block_core_latest_posts' );
    33 remove_action( 'init', 'register_block_core_list' );
    34 remove_action( 'init', 'register_block_core_loginout' );
    35 remove_action( 'init', 'register_block_core_media_text' );
    36 remove_action( 'init', 'register_block_core_navigation' );
    37 remove_action( 'init', 'register_block_core_navigation_link' );
    38 remove_action( 'init', 'register_block_core_navigation_submenu' );
    39 remove_action( 'init', 'register_block_core_page_list' );
    40 remove_action( 'init', 'register_block_core_page_list_item' );
    41 remove_action( 'init', 'register_block_core_pattern' );
    42 remove_action( 'init', 'register_block_core_post_author' );
    43 remove_action( 'init', 'register_block_core_post_author_biography' );
    44 remove_action( 'init', 'register_block_core_post_author_name' );
    45 remove_action( 'init', 'register_block_core_post_comments_count' );
    46 remove_action( 'init', 'register_block_core_post_comments_form' );
    47 remove_action( 'init', 'register_block_core_post_comments_link' );
    48 remove_action( 'init', 'register_block_core_post_content' );
    49 remove_action( 'init', 'register_block_core_post_date' );
    50 remove_action( 'init', 'register_block_core_post_excerpt' );
    51 remove_action( 'init', 'register_block_core_post_featured_image' );
    52 remove_action( 'init', 'register_block_core_post_navigation_link' );
    53 remove_action( 'init', 'register_block_core_post_template' );
    54 remove_action( 'init', 'register_block_core_post_terms' );
    55 remove_action( 'init', 'register_block_core_post_time_to_read' );
    56 remove_action( 'init', 'register_block_core_post_title' );
    57 remove_action( 'init', 'register_block_core_query' );
    58 remove_action( 'init', 'register_block_core_query_no_results' );
    59 remove_action( 'init', 'register_block_core_query_pagination' );
    60 remove_action( 'init', 'register_block_core_query_pagination_next' );
    61 remove_action( 'init', 'register_block_core_query_pagination_numbers' );
    62 remove_action( 'init', 'register_block_core_query_pagination_previous' );
    63 remove_action( 'init', 'register_block_core_query_title' );
    64 remove_action( 'init', 'register_block_core_query_total' );
    65 remove_action( 'init', 'register_block_core_read_more' );
    66 remove_action( 'init', 'register_block_core_rss' );
    67 remove_action( 'init', 'register_block_core_search' );
    68 remove_action( 'init', 'register_block_core_shortcode' );
    69 remove_action( 'init', 'register_block_core_site_logo' );
    70 remove_action( 'init', 'register_block_core_site_tagline' );
    71 remove_action( 'init', 'register_block_core_site_title' );
    72 remove_action( 'init', 'register_block_core_social_link' );
    73 remove_action( 'init', 'register_block_core_tag_cloud' );
    74 remove_action( 'init', 'register_block_core_template_part' );
    75 remove_action( 'init', 'register_block_core_term_count' );
    76 remove_action( 'init', 'register_block_core_term_description' );
    77 remove_action( 'init', 'register_block_core_term_name' );
    78 remove_action( 'init', 'register_block_core_term_template' );
    79 remove_action( 'init', 'register_block_core_video' );
     3// Unhook block registration functions to prevent _doing_it_wrong warnings
     4// when tests re-trigger the init action. See _unhook_block_registration().
     5$blocks_dir = ABSPATH . WPINC . '/blocks/';
     6foreach ( glob( $blocks_dir . '*.php' ) as $block_file ) {
     7        $block_name = basename( $block_file, '.php' );
     8
     9        if ( ! is_dir( $blocks_dir . $block_name ) ) {
     10                continue;
     11        }
     12
     13        remove_action( 'init', 'register_block_core_' . str_replace( '-', '_', $block_name ) );
     14}
Note: See TracChangeset for help on using the changeset viewer.