--- a/wp/wp-includes/class-wp-block-type-registry.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/class-wp-block-type-registry.php Tue Dec 15 13:49:49 2020 +0100
@@ -34,12 +34,13 @@
*
* @since 5.0.0
*
- * @param string|WP_Block_Type $name Block type name including namespace, or alternatively a
- * complete WP_Block_Type instance. In case a WP_Block_Type
+ * @param string|WP_Block_Type $name Block type name including namespace, or alternatively
+ * a complete WP_Block_Type instance. In case a WP_Block_Type
* is provided, the $args parameter will be ignored.
* @param array $args {
- * Optional. Array of block type arguments. Any arguments may be defined, however the
- * ones described below are supported by default. Default empty array.
+ * Optional. Array of block type arguments. Accepts any public property of `WP_Block_Type`.
+ * Any arguments may be defined, however the ones described below are supported by default.
+ * Default empty array.
*
* @type callable $render_callback Callback used to render blocks of this block type.
* @type array $attributes Block attributes mapping, property name to schema.
@@ -73,7 +74,7 @@
}
if ( $this->is_registered( $name ) ) {
- /* translators: %s: block name */
+ /* translators: %s: Block name. */
$message = sprintf( __( 'Block type "%s" is already registered.' ), $name );
_doing_it_wrong( __METHOD__, $message, '5.0.0' );
return false;
@@ -93,8 +94,8 @@
*
* @since 5.0.0
*
- * @param string|WP_Block_Type $name Block type name including namespace, or alternatively a
- * complete WP_Block_Type instance.
+ * @param string|WP_Block_Type $name Block type name including namespace, or alternatively
+ * a complete WP_Block_Type instance.
* @return WP_Block_Type|false The unregistered block type on success, or false on failure.
*/
public function unregister( $name ) {
@@ -103,7 +104,7 @@
}
if ( ! $this->is_registered( $name ) ) {
- /* translators: %s: block name */
+ /* translators: %s: Block name. */
$message = sprintf( __( 'Block type "%s" is not registered.' ), $name );
_doing_it_wrong( __METHOD__, $message, '5.0.0' );
return false;