Skip to content

Commit 40dba1d

Browse files
committed
WP_Icons_Registry: Add filter icons_registry_core_manifest
This is so that the Gutenberg plugin can easily provide new core icons in between major WordPress releases. On the other hand, we will probably end up redefining whole methods on the Gutenberg side as we improve WP_Icons_Registry, so it may be moot to introduce a filter just for the manifest file.
1 parent e8bbca0 commit 40dba1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/wp-includes/class-wp-icons-registry.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected function __construct() {
4444
$icons_directory = __DIR__ . '/icons/';
4545
$icons_directory = trailingslashit( $icons_directory );
4646
$manifest_path = $icons_directory . 'manifest.php';
47+
$manifest_path = apply_filters( 'icons_registry_core_manifest', $manifest_path );
4748

4849
if ( ! is_readable( $manifest_path ) ) {
4950
wp_trigger_error(

0 commit comments

Comments
 (0)