Make WordPress Core

Changeset 62143 for trunk


Ignore:
Timestamp:
03/26/2026 03:26:04 PM (10 days ago)
Author:
dmsnell
Message:

Build: Restore deleted files and reconnect version history.

In [61438] and successive fixes, a number of files were deleted and added to .gitignore. These files were removed because they are built from the Gutenberg repo and copied into the Core repo. However, because the only artifact of udpates to those files are an opaque hash change, it’s important to have a copy of the files at the change in version control for the purposes of auditing, debugging, benchmarking, and tracking.

This patch merges a version-history from before the initial changeset and reattaches the version-tracking to these files, creating immitation commits along each step where the files were updated in a Gutenberg sync.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11064
Discussed in: https://core.trac.wordpress.org/ticket/64393

Follow-up to [61438].

Props 762e5e74, aidvu, desrosj, dmsnell, jonsurrell, youknowriad.
See #64393.

Location:
trunk
Files:
21 added
10 deleted
7 edited
198 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/.gitignore

    r62077 r62143  
    3434/src/wp-admin/js
    3535/src/wp-includes/assets/*
     36!/src/wp-includes/assets/icon-library-manifest.php
     37!/src/wp-includes/assets/script-loader-packages.php
     38!/src/wp-includes/assets/script-modules-packages.php
    3639/src/wp-includes/js
    3740/src/wp-includes/css/dist
    3841/src/wp-includes/css/*.min.css
    3942/src/wp-includes/css/*-rtl.css
    40 /src/wp-includes/blocks/*
    41 !/src/wp-includes/blocks/index.php
    42 /src/wp-includes/images/icon-library
    43 /src/wp-includes/build
    44 /src/wp-includes/theme.json
     43/src/wp-includes/blocks/**/*.css
     44/src/wp-includes/blocks/**/*.js
     45/src/wp-includes/blocks/**/*.js.map
    4546/packagehash.txt
    4647/.gutenberg-hash
  • trunk/src/wp-includes

    • Property svn:ignore
      •  

        old new  
        11js
        2 blocks
        3 build
        4 icons
        5 class-wp-block-parser-block.php
        6 class-wp-block-parser-frame.php
        7 theme.json
  • trunk/src/wp-includes/assets

    • Property svn:ignore
      •  

        old new  
        1 *
         1script-loader-packages.php
         2script-modules-packages.php
  • trunk/src/wp-includes/blocks

    • Property svn:ignore
      •  

        old new  
        1 *
         1*.js.map
         2*.js
         3*.css
  • trunk/src/wp-includes/blocks/index.php

    r61492 r62143  
    1414
    1515// Include files required for core blocks registration.
    16 if ( file_exists( BLOCKS_PATH . 'legacy-widget.php' ) ) {
    17     require BLOCKS_PATH . 'legacy-widget.php';
    18 }
    19 if ( file_exists( BLOCKS_PATH . 'widget-group.php' ) ) {
    20     require BLOCKS_PATH . 'widget-group.php';
    21 }
    22 if ( file_exists( BLOCKS_PATH . 'require-dynamic-blocks.php' ) ) {
    23     require BLOCKS_PATH . 'require-dynamic-blocks.php';
    24 }
     16require BLOCKS_PATH . 'legacy-widget.php';
     17require BLOCKS_PATH . 'widget-group.php';
     18require BLOCKS_PATH . 'require-dynamic-blocks.php';
    2519
    2620/**
     
    5044    static $core_blocks_meta;
    5145    if ( ! $core_blocks_meta ) {
    52         if ( ! file_exists( BLOCKS_PATH . 'blocks-json.php' ) ) {
    53             return;
    54         }
    5546        $core_blocks_meta = require BLOCKS_PATH . 'blocks-json.php';
    5647    }
     
    160151 */
    161152function register_core_block_types_from_metadata() {
    162     if ( ! file_exists( BLOCKS_PATH . 'require-static-blocks.php' ) ) {
    163         return;
    164     }
    165153    $block_folders = require BLOCKS_PATH . 'require-static-blocks.php';
    166154    foreach ( $block_folders as $block_folder ) {
     
    182170 */
    183171function wp_register_core_block_metadata_collection() {
    184     if ( ! file_exists( BLOCKS_PATH . 'blocks-json.php' ) ) {
    185         return;
    186     }
    187172    wp_register_block_metadata_collection(
    188173        BLOCKS_PATH,
  • trunk/src/wp-includes/images

    • Property svn:ignore deleted
Note: See TracChangeset for help on using the changeset viewer.