Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- Redraw a further 141 icons as stroke-based for variable stroke-width support, following the convention introduced in [#78808](https://github.com/WordPress/gutenberg/pull/78808), and refine the already stroke-based `image` drawing. Most retain their original footprint; the table icons, `capturePhoto` and `image` are slightly smaller by design. ([#82540](https://github.com/WordPress/gutenberg/pull/82540))
- `manifest.json`: The `public` property is now a tri-state. Omitting it keeps an icon in the JS library only; `true` ships it to WordPress Core and exposes it through the icons REST API, making it selectable in the Icon block; `false` ships it and registers it in the `core` collection for server-side use via `wp_get_icon()`, while hiding it from the REST API and the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634))
- The `wordpress` icon now ships to WordPress Core as a non-public icon: it is registered in the `core` collection and stays available to server-side code via `wp_get_icon( 'core/wordpress' )`, but is not exposed through the icons REST API and is not selectable in the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634))
- The `brush`, `dashboard`, `link`, `media`, `page`, `pin`, `plugins`, `sites`, `tool`, `update` and `wordpress` icons now ship to WordPress Core as non-public icons: they are registered in the `core` collection and stay available to server-side code via `wp_get_icon()`, but are not exposed through the icons REST API and are not selectable in the Icon block. ([#82634](https://github.com/WordPress/gutenberg/pull/82634), [#79451](https://github.com/WordPress/gutenberg/pull/79451))

### Bug Fixes

Expand Down
30 changes: 20 additions & 10 deletions packages/icons/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
{
"slug": "brush",
"label": "Brush",
"filePath": "library/brush.svg"
"filePath": "library/brush.svg",
"public": false
},
{
"slug": "bug",
Expand Down Expand Up @@ -491,7 +492,8 @@
{
"slug": "dashboard",
"label": "Dashboard",
"filePath": "library/dashboard.svg"
"filePath": "library/dashboard.svg",
"public": false
},
{
"slug": "desktop",
Expand Down Expand Up @@ -923,7 +925,8 @@
{
"slug": "link",
"label": "Link",
"filePath": "library/link.svg"
"filePath": "library/link.svg",
"public": false
},
{
"slug": "link-off",
Expand Down Expand Up @@ -984,7 +987,8 @@
{
"slug": "media",
"label": "Media",
"filePath": "library/media.svg"
"filePath": "library/media.svg",
"public": false
},
{
"slug": "media-and-text",
Expand Down Expand Up @@ -1069,7 +1073,8 @@
{
"slug": "page",
"label": "Page",
"filePath": "library/page.svg"
"filePath": "library/page.svg",
"public": false
},
{
"slug": "page-break",
Expand Down Expand Up @@ -1123,7 +1128,8 @@
{
"slug": "pin",
"label": "Pin",
"filePath": "library/pin.svg"
"filePath": "library/pin.svg",
"public": false
},
{
"slug": "pin-small",
Expand All @@ -1133,7 +1139,8 @@
{
"slug": "plugins",
"label": "Plugins",
"filePath": "library/plugins.svg"
"filePath": "library/plugins.svg",
"public": false
},
{
"slug": "play",
Expand Down Expand Up @@ -1507,7 +1514,8 @@
{
"slug": "sites",
"label": "Sites",
"filePath": "library/sites.svg"
"filePath": "library/sites.svg",
"public": false
},
{
"slug": "square",
Expand Down Expand Up @@ -1713,7 +1721,8 @@
{
"slug": "tool",
"label": "Tool",
"filePath": "library/tool.svg"
"filePath": "library/tool.svg",
"public": false
},
{
"slug": "trash",
Expand Down Expand Up @@ -1758,7 +1767,8 @@
{
"slug": "update",
"label": "Update",
"filePath": "library/update.svg"
"filePath": "library/update.svg",
"public": false
},
{
"slug": "upload",
Expand Down
50 changes: 50 additions & 0 deletions packages/icons/src/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
'label' => _x( 'Block Table', 'icon label', 'gutenberg' ),
'filePath' => 'library/block-table.svg',
),
'brush' => array(
'label' => _x( 'Brush', 'icon label', 'gutenberg' ),
'filePath' => 'library/brush.svg',
'public' => false,
),
'calendar' => array(
'label' => _x( 'Calendar', 'icon label', 'gutenberg' ),
'filePath' => 'library/calendar.svg',
Expand Down Expand Up @@ -141,6 +146,11 @@
'label' => _x( 'Create', 'icon label', 'gutenberg' ),
'filePath' => 'library/create.svg',
),
'dashboard' => array(
'label' => _x( 'Dashboard', 'icon label', 'gutenberg' ),
'filePath' => 'library/dashboard.svg',
'public' => false,
),
'desktop' => array(
'label' => _x( 'Desktop', 'icon label', 'gutenberg' ),
'filePath' => 'library/desktop.svg',
Expand Down Expand Up @@ -209,10 +219,20 @@
'label' => _x( 'Language', 'icon label', 'gutenberg' ),
'filePath' => 'library/language.svg',
),
'link' => array(
'label' => _x( 'Link', 'icon label', 'gutenberg' ),
'filePath' => 'library/link.svg',
'public' => false,
),
'map-marker' => array(
'label' => _x( 'Map Marker', 'icon label', 'gutenberg' ),
'filePath' => 'library/map-marker.svg',
),
'media' => array(
'label' => _x( 'Media', 'icon label', 'gutenberg' ),
'filePath' => 'library/media.svg',
'public' => false,
),
'menu' => array(
'label' => _x( 'Menu', 'icon label', 'gutenberg' ),
'filePath' => 'library/menu.svg',
Expand All @@ -233,6 +253,11 @@
'label' => _x( 'Next', 'icon label', 'gutenberg' ),
'filePath' => 'library/next.svg',
),
'page' => array(
'label' => _x( 'Page', 'icon label', 'gutenberg' ),
'filePath' => 'library/page.svg',
'public' => false,
),
'paragraph' => array(
'label' => _x( 'Paragraph', 'icon label', 'gutenberg' ),
'filePath' => 'library/paragraph.svg',
Expand All @@ -249,6 +274,16 @@
'label' => _x( 'People', 'icon label', 'gutenberg' ),
'filePath' => 'library/people.svg',
),
'pin' => array(
'label' => _x( 'Pin', 'icon label', 'gutenberg' ),
'filePath' => 'library/pin.svg',
'public' => false,
),
'plugins' => array(
'label' => _x( 'Plugins', 'icon label', 'gutenberg' ),
'filePath' => 'library/plugins.svg',
'public' => false,
),
'plus' => array(
'label' => _x( 'Plus', 'icon label', 'gutenberg' ),
'filePath' => 'library/plus.svg',
Expand Down Expand Up @@ -305,6 +340,11 @@
'label' => _x( 'Shuffle', 'icon label', 'gutenberg' ),
'filePath' => 'library/shuffle.svg',
),
'sites' => array(
'label' => _x( 'Sites', 'icon label', 'gutenberg' ),
'filePath' => 'library/sites.svg',
'public' => false,
),
'star-empty' => array(
'label' => _x( 'Star Empty', 'icon label', 'gutenberg' ),
'filePath' => 'library/star-empty.svg',
Expand Down Expand Up @@ -349,6 +389,16 @@
'label' => _x( 'Tip', 'icon label', 'gutenberg' ),
'filePath' => 'library/tip.svg',
),
'tool' => array(
'label' => _x( 'Tool', 'icon label', 'gutenberg' ),
'filePath' => 'library/tool.svg',
'public' => false,
),
'update' => array(
'label' => _x( 'Update', 'icon label', 'gutenberg' ),
'filePath' => 'library/update.svg',
'public' => false,
),
'upload' => array(
'label' => _x( 'Upload', 'icon label', 'gutenberg' ),
'filePath' => 'library/upload.svg',
Expand Down
Loading