Commit 6074882eb7 for wordpress.org
commit 6074882eb7719d01728521c298b324026db6bedb
Author: westonruter <westonruter@git.wordpress.org>
Date: Thu Sep 10 22:58:51 2026 +0000
Docs: Use the `bool` and `int` short type forms in PHPDoc.
The PHP inline documentation standards call for `bool` and `int` in `@param`, `@return` and `@global` tags, but six docblocks in `src/wp-includes` still carried the long `boolean` and `integer` spellings.
Developed in https://github.com/WordPress/wordpress-develop/pull/13476.
Follow-up to r63495.
Props njones35.
See #65860.
Built from https://develop.svn.wordpress.org/trunk@63596
git-svn-id: http://core.svn.wordpress.org/trunk@62772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php
index 1252ca6736..e91d547eb5 100644
--- a/wp-includes/class-wp-theme-json.php
+++ b/wp-includes/class-wp-theme-json.php
@@ -3009,12 +3009,12 @@ class WP_Theme_JSON {
* @since 6.6.0 Pass current theme JSON settings to wp_get_typography_font_size_value(), and process background properties.
* @since 6.7.0 `ref` resolution of background properties, and assigning custom default values.
*
- * @param array $styles Styles to process.
- * @param array $settings Theme settings.
- * @param array $properties Properties metadata.
- * @param array $theme_json Theme JSON array.
- * @param string $selector The style block selector.
- * @param boolean $use_root_padding Whether to add custom properties at root level.
+ * @param array $styles Styles to process.
+ * @param array $settings Theme settings.
+ * @param array $properties Properties metadata.
+ * @param array $theme_json Theme JSON array.
+ * @param string $selector The style block selector.
+ * @param bool $use_root_padding Whether to add custom properties at root level.
* @return array Returns the modified $declarations.
*/
protected static function compute_style_properties( $styles, $settings = array(), $properties = null, $theme_json = null, $selector = null, $use_root_padding = null ) {
diff --git a/wp-includes/global-styles-and-settings.php b/wp-includes/global-styles-and-settings.php
index 0534d8b0de..c4a3284dad 100644
--- a/wp-includes/global-styles-and-settings.php
+++ b/wp-includes/global-styles-and-settings.php
@@ -497,7 +497,7 @@ function wp_get_theme_data_template_parts() {
*
* @param WP_Block_Type $block_type The block's type.
* @param string|array $target The desired selector's target, `root` or array path.
- * @param boolean $fallback Whether to fall back to broader selector.
+ * @param bool $fallback Whether to fall back to broader selector.
* @return string|null CSS selector or `null` if no selector available.
*/
function wp_get_block_css_selector( $block_type, $target = 'root', $fallback = false ) {
diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php
index b59baaf5a8..cd5814f0a4 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2789,7 +2789,7 @@ class WP_HTML_Tag_Processor {
* @ignore
*
* @param string $comparable_name The attribute name in its comparable form.
- * @return string|boolean|null Value of enqueued update if present, otherwise false.
+ * @return string|bool|null Value of enqueued update if present, otherwise false.
*/
private function get_enqueued_attribute_value( string $comparable_name ) {
if ( self::STATE_MATCHED_TAG !== $this->parser_state ) {
diff --git a/wp-includes/media.php b/wp-includes/media.php
index be0b2fbf09..1e0b86655e 100644
--- a/wp-includes/media.php
+++ b/wp-includes/media.php
@@ -2120,7 +2120,7 @@ function wp_img_tag_add_auto_sizes( string $image ): string {
*
* @since 6.7.1
*
- * @param boolean $enabled Whether auto-sizes for lazy loaded images is enabled.
+ * @param bool $enabled Whether auto-sizes for lazy loaded images is enabled.
*/
if ( ! apply_filters( 'wp_img_tag_add_auto_sizes', true ) ) {
return $image;
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
index ed8195cbb9..83466acad0 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
@@ -386,7 +386,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Posts_Controller {
* @since 5.9.0
* @since 6.3.0 Adds revisions count and rest URL href to version-history.
*
- * @param integer $id ID.
+ * @param int $id ID.
* @return array Links for the given post.
*/
protected function prepare_links( $id ) {
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
index 0941ee4ea5..190eea6b20 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
@@ -967,7 +967,7 @@ class WP_REST_Templates_Controller extends WP_REST_Controller {
*
* @since 5.8.0
*
- * @param integer $id ID.
+ * @param int $id ID.
* @return array Links for the given post.
*/
protected function prepare_links( $id ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 9831d80a69..d62404eb5b 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-63595';
+$wp_version = '7.2-alpha-63596';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.