Changeset 62077
- Timestamp:
- 03/20/2026 03:39:18 PM (8 days ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
.gitignore (modified) (1 diff)
-
Gruntfile.js (modified) (3 diffs)
-
src/wp-includes/class-wp-icons-registry.php (modified) (1 diff)
-
src/wp-includes/images (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r61800 r62077 40 40 /src/wp-includes/blocks/* 41 41 !/src/wp-includes/blocks/index.php 42 /src/wp-includes/i cons42 /src/wp-includes/images/icon-library 43 43 /src/wp-includes/build 44 44 /src/wp-includes/theme.json -
trunk/Gruntfile.js
r62071 r62077 56 56 'wp-includes/blocks/**/*', 57 57 '!wp-includes/blocks/index.php', 58 'wp-includes/images/icon-library', 59 // Old location kept temporarily to ensure they are cleaned up. 58 60 'wp-includes/icons', 59 61 ], … … 683 685 ], 684 686 }, 685 'gutenberg-icons': { 687 'icon-library-images': { 688 files: [ { 689 expand: true, 690 cwd: 'gutenberg/packages/icons/src/library', 691 src: '*.svg', 692 dest: WORKING_DIR + 'wp-includes/images/icon-library', 693 } ], 694 }, 695 'icon-library-manifest': { 686 696 options: { 687 process: function( content , srcpath) {688 // Remove the 'gutenberg' text domain from _x() calls in manifest.php.689 if ( path.basename( srcpath ) === 'manifest.php' ) {690 return content.replace(697 process: function( content ) { 698 return content 699 // Remove the 'gutenberg' text domain from _x() calls. 700 .replace( 691 701 /_x\(\s*([^,]+),\s*([^,]+),\s*['"]gutenberg['"]\s*\)/g, 692 702 '_x( $1, $2 )' 703 ) 704 // Strip the 'library/' prefix from filePath values so they 705 // resolve correctly relative to wp-includes/images/icon-library/. 706 .replace( 707 /'filePath' => 'library\//g, 708 '\'filePath\' => \'' 693 709 ); 694 }695 return content;696 710 } 697 711 }, 698 files: [ 699 { 700 src: 'gutenberg/packages/icons/src/manifest.php', 701 dest: WORKING_DIR + 'wp-includes/icons/manifest.php', 702 }, 703 { 704 expand: true, 705 cwd: 'gutenberg/packages/icons/src/library', 706 src: '*.svg', 707 dest: WORKING_DIR + 'wp-includes/icons/library/', 708 }, 709 ], 712 files: [ { 713 src: 'gutenberg/packages/icons/src/manifest.php', 714 dest: WORKING_DIR + 'wp-includes/assets/icon-library-manifest.php', 715 } ], 710 716 }, 711 717 }, … … 2060 2066 'copy:gutenberg-styles', 2061 2067 'copy:gutenberg-theme-json', 2062 'copy:gutenberg-icons', 2068 'copy:icon-library-images', 2069 'copy:icon-library-manifest', 2063 2070 ] ); 2064 2071 -
trunk/src/wp-includes/class-wp-icons-registry.php
r61748 r62077 42 42 */ 43 43 protected function __construct() { 44 $icons_directory = __DIR__ . '/icons/'; 45 $icons_directory = trailingslashit( $icons_directory ); 46 $manifest_path = $icons_directory . 'manifest.php'; 44 $icons_directory = __DIR__ . '/images/icon-library/'; 45 $manifest_path = __DIR__ . '/assets/icon-library-manifest.php'; 47 46 48 47 if ( ! is_readable( $manifest_path ) ) { -
trunk/src/wp-includes/images
-
Property
svn:ignore
set to
icon-library
-
Property
svn:ignore
set to
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php
r61739 r62077 12 12 * Controller which provides a REST endpoint for the editor to read registered 13 13 * 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 are15 * 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. 16 16 * 17 17 * @since 7.0.0
Note: See TracChangeset
for help on using the changeset viewer.