From abff73f0e0307bd88244aca6a15f453bddcfaf44 Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 30 Sep 2019 15:44:59 +0000 Subject: [PATCH] Docs: Correct `WP_Styles_Registry` documentation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change updates the file’s docblock to correctly indicate `WordPress`/`Blocks` as the `@package`/`@subpackage`, updates the `_doing_it_wrong()` versions to `5.3.0` instead of the Gutenberg plugin versions, and removes some stray `gutenberg` text domains. Props david.binda. Fixes #48181. Built from https://develop.svn.wordpress.org/trunk@46351 git-svn-id: http://core.svn.wordpress.org/trunk@46150 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-block-styles-registry.php | 15 ++++++++------- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/wp-includes/class-wp-block-styles-registry.php b/wp-includes/class-wp-block-styles-registry.php index 4f4b57ba50..32496321c6 100644 --- a/wp-includes/class-wp-block-styles-registry.php +++ b/wp-includes/class-wp-block-styles-registry.php @@ -2,7 +2,8 @@ /** * Blocks API: WP_Block_Styles_Registry class * - * @package Gutenberg + * @package WordPress + * @subpackage Blocks * @since 5.3.0 */ @@ -41,14 +42,14 @@ final class WP_Block_Styles_Registry { public function register( $block_name, $style_properties ) { if ( ! isset( $block_name ) || ! is_string( $block_name ) ) { - $message = __( 'Block name name must be a string.', 'gutenberg' ); - _doing_it_wrong( __METHOD__, $message, '6.2.0' ); + $message = __( 'Block name name must be a string.' ); + _doing_it_wrong( __METHOD__, $message, '5.3.0' ); return false; } if ( ! isset( $style_properties['name'] ) || ! is_string( $style_properties['name'] ) ) { - $message = __( 'Block style name must be a string.', 'gutenberg' ); - _doing_it_wrong( __METHOD__, $message, '6.2.0' ); + $message = __( 'Block style name must be a string.' ); + _doing_it_wrong( __METHOD__, $message, '5.3.0' ); return false; } @@ -73,8 +74,8 @@ final class WP_Block_Styles_Registry { public function unregister( $block_name, $block_style_name ) { if ( ! $this->is_registered( $block_name, $block_style_name ) ) { /* translators: 1: block name, 2: block style name */ - $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s.".', 'gutenberg' ), $block_name, $block_style_name ); - _doing_it_wrong( __METHOD__, $message, '6.2.0' ); + $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s.".' ), $block_name, $block_style_name ); + _doing_it_wrong( __METHOD__, $message, '5.3.0' ); return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6d109e1b92..f0053c9b7e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta1-46350'; +$wp_version = '5.3-beta1-46351'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.