close

Make WordPress Core

Changeset 61675


Ignore:
Timestamp:
02/18/2026 03:20:18 PM (3 weeks ago)
Author:
mcsf
Message:

Icons library: Register all icons found in manifest

As of https://github.com/WordPress/gutenberg/pull/75684, icons' manifest.php
file only lists "public" icons, and in the process the now-redundant `"public"
=> true` flag was dropped.

Accordingly, this removes the check for the public flag from the icon
registry's registration logic.

Follow-up to [61674].

Props mcsf, wildworks, ellatrix.
Fixes #64651.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-icons-registry.php

    r61674 r61675  
    3939     * These icons are defined in @wordpress/packages (Gutenberg repository) as
    4040     * SVG files and as entries in a single manifest file. On init, the
    41      * registry is loaded with those icons in the manifest which are marked
    42      * `public`.
     41     * registry is loaded with those icons listed in the manifest.
    4342     */
    4443    private function __construct() {
     
    7675                );
    7776                return;
    78             }
    79 
    80             if ( ! ( $icon_data['public'] ?? false ) ) {
    81                 continue;
    8277            }
    8378
Note: See TracChangeset for help on using the changeset viewer.