Make WordPress Core

Changeset 61439


Ignore:
Timestamp:
01/05/2026 01:34:12 PM (4 months ago)
Author:
youknowriad
Message:

Build/Test Tools: Fix Gutenberg integration script prefixes and theme-i18n.json handling.

This changeset addresses two issues in the Gutenberg integration workflow:

  • Sets wpPlugin.name to wp in build-gutenberg.js so generated PHP files use wp_ prefixes instead of gutenberg_.
  • Persists theme-i18n.json in the repository for WP-CLI compatibility, as this file is required but was being ignored.

Props youknowriad, swissspidy.
See #64393.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r61438 r61439  
    4343/src/wp-includes/class-wp-block-parser-frame.php
    4444/src/wp-includes/theme.json
    45 /src/wp-includes/theme-i18n.json
    4645/packagehash.txt
    4746/artifacts
  • trunk/tools/gutenberg/build-gutenberg.js

    r61438 r61439  
    115115        gutenbergPackageJson.config.IS_WORDPRESS_CORE = true;
    116116
     117        // Set wpPlugin.name for Core naming convention
     118        gutenbergPackageJson.wpPlugin = gutenbergPackageJson.wpPlugin || {};
     119        gutenbergPackageJson.wpPlugin.name = 'wp';
     120
    117121        fs.writeFileSync(
    118122            gutenbergPackageJsonPath,
     
    122126        console.log( '   ✅ IS_GUTENBERG_PLUGIN = false' );
    123127        console.log( '   ✅ IS_WORDPRESS_CORE = true' );
     128        console.log( '   ✅ wpPlugin.name = wp' );
    124129    } catch ( error ) {
    125130        console.error(
Note: See TracChangeset for help on using the changeset viewer.