Skip to content

Commit 970944b

Browse files
committed
Don't register no-public icons
1 parent 8446d5e commit 970944b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ private function __construct() {
6969
return;
7070
}
7171

72+
if ( ! ( $icon_data['public'] ?? false ) ) {
73+
continue;
74+
}
75+
7276
$this->register(
7377
'core/' . $icon_name,
7478
array(

0 commit comments

Comments
 (0)