Make WordPress Core

Changeset 54276 for trunk/package.json


Ignore:
Timestamp:
09/21/2022 01:55:25 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Editor: Improve block loading PHP performance.

This commit improves PHP performance for core blocks by reading a single PHP file with block metadata, instead of reading a JSON file per-block and then decoding from JSON to PHP.

Includes:

  • Adding a new Grunt task to convert block.json files to block-json.php.
  • Using the new block-json.php file in the register_block_type_from_metadata() function.

Follow-up to [48141].

Props aristath, gziolo, johnbillion, presstoke, mukesh27, hellofromTonya, petitphp, adamsilverstein, costdev, desrosj, SergeyBiryukov.
Fixes #55005.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r54257 r54276  
    144144        "jquery-form": "4.3.0",
    145145        "jquery-hoverintent": "1.10.2",
     146        "json2php": "^0.0.5",
    146147        "lodash": "4.17.21",
    147148        "masonry-layout": "4.2.2",
Note: See TracChangeset for help on using the changeset viewer.