Make WordPress Core


Ignore:
Timestamp:
03/20/2026 03:39:18 PM (7 months ago)
Author:
desrosj
Message:

Build/Test Tools: Move icon library SVG files to wp-includes/images.

This makes several changes to the build script to place the icon library files into more appropriate locations.

  • The icon library SVG files are now copied into the wp-includes/images/icon-library directory instead of wp-includes/icons.
  • The name of the manifest.php file has changed to icon-library-manifest.php and is now copied to wp-includes/assets.
  • An unnecessary trailingslashit() has been removed.
  • The gutenberg- prefix for the corresponding grunt copy tasks has been removed.

These values are merged into the script-loader-packages.php file during a build, so the original PHP files are not required.

Props mcsf, desrosj.
See #64393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php

    r61739 r62077  
    1212 * Controller which provides a REST endpoint for the editor to read registered
    1313 * icons. For the time being, only core icons are available, which are defined
    14  * in a single manifest file (wp-includes/icons/manifest.php). Icons are
    15  * comprised of their SVG source, a name and a translatable label.
     14 * in a single manifest file (wp-includes/assets/icon-library-manifest.php).
     15 * Icons are comprised of their SVG source, a name and a translatable label.
    1616 *
    1717 * @since 7.0.0
Note: See TracChangeset for help on using the changeset viewer.