From f402ce754da60fe2af85552e520d73f87643cddc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 7 Dec 2023 15:14:27 +0000 Subject: [PATCH] Docs: Improve documentation for `Custom_Image_Header` and `Custom_Background` constructors. Follow-up to [4673], [8656], [12890], [13041]. Props faisalahammad, cadic. Fixes #58049. Built from https://develop.svn.wordpress.org/trunk@57169 git-svn-id: http://core.svn.wordpress.org/trunk@56680 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-custom-background.php | 7 +++++-- wp-admin/includes/class-custom-image-header.php | 8 +++++--- wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php index 2eb3ccfd64..1d1cce73b8 100644 --- a/wp-admin/includes/class-custom-background.php +++ b/wp-admin/includes/class-custom-background.php @@ -42,8 +42,11 @@ class Custom_Background { * Constructor - Registers administration header callback. * * @since 3.0.0 - * @param callable $admin_header_callback - * @param callable $admin_image_div_callback Optional custom image div output callback. + * + * @param callable $admin_header_callback Optional. Administration header callback. + * Default empty string. + * @param callable $admin_image_div_callback Optional. Custom image div output callback. + * Default empty string. */ public function __construct( $admin_header_callback = '', $admin_image_div_callback = '' ) { $this->admin_header_callback = $admin_header_callback; diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php index ee3bcb12ec..a4b04bf3fc 100644 --- a/wp-admin/includes/class-custom-image-header.php +++ b/wp-admin/includes/class-custom-image-header.php @@ -47,11 +47,13 @@ class Custom_Image_Header { private $updated; /** - * Constructor - Register administration header callback. + * Constructor - Registers administration header callback. * * @since 2.1.0 - * @param callable $admin_header_callback - * @param callable $admin_image_div_callback Optional custom image div output callback. + * + * @param callable $admin_header_callback Administration header callback. + * @param callable $admin_image_div_callback Optional. Custom image div output callback. + * Default empty string. */ public function __construct( $admin_header_callback, $admin_image_div_callback = '' ) { $this->admin_header_callback = $admin_header_callback; diff --git a/wp-includes/version.php b/wp-includes/version.php index 3fab07e1ee..107b4d32ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57163'; +$wp_version = '6.5-alpha-57169'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.