Docs: Various docblock corrections for code added in 5.8.

Props johnbillion.
See #53461.

git-svn-id: https://develop.svn.wordpress.org/trunk@51221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2021-06-23 19:04:51 +00:00
parent 10111200c9
commit 3073bb0f19
13 changed files with 98 additions and 113 deletions

View File

@@ -214,8 +214,6 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
/**
* Add `style` and `editor_style` for core blocks if missing.
*
* @since 5.8.0
*/
if ( ! empty( $metadata['name'] ) && 0 === strpos( $metadata['name'], 'core/' ) ) {
$block_name = str_replace( 'core/', '', $metadata['name'] );