Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Icon block category to media #3

Open
waviaei opened this issue Sep 8, 2020 · 1 comment
Open

Change Icon block category to media #3

waviaei opened this issue Sep 8, 2020 · 1 comment

Comments

@waviaei
Copy link
Member

waviaei commented Sep 8, 2020

It is currently common.

category: 'common',

However, block categories has been changed and merged into 5.5. A block that is in common now appears in text. But I think Icon block is more close to media than text. So I would like to suggest to change to media

WordPress/gutenberg#19279

@waviaei
Copy link
Member Author

waviaei commented Apr 25, 2024

最新のブロックカテゴリ
https://developer.wordpress.org/reference/functions/get_default_block_categories/

function get_default_block_categories() {
	return array(
		array(
			'slug'  => 'text',
			'title' => _x( 'Text', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'media',
			'title' => _x( 'Media', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'design',
			'title' => _x( 'Design', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'widgets',
			'title' => _x( 'Widgets', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'theme',
			'title' => _x( 'Theme', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'embed',
			'title' => _x( 'Embeds', 'block category' ),
			'icon'  => null,
		),
		array(
			'slug'  => 'reusable',
			'title' => _x( 'Patterns', 'block category' ),
			'icon'  => null,
		),
	);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant