diff --git a/wp-admin/includes/class-automatic-upgrader-skin.php b/wp-admin/includes/class-automatic-upgrader-skin.php index 9875c6dee5..1835b3952c 100644 --- a/wp-admin/includes/class-automatic-upgrader-skin.php +++ b/wp-admin/includes/class-automatic-upgrader-skin.php @@ -8,7 +8,7 @@ */ /** - * Upgrader Skin for Automatic WordPress Upgrades + * Upgrader Skin for Automatic WordPress Upgrades. * * This skin is designed to be used when no output is intended, all output * is captured and stored for the caller to process and log/email/discard. @@ -52,14 +52,22 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { } /** - * @return array + * Retrieves the upgrade messages. + * + * @since 3.7.0 + * + * @return array Messages during an upgrade. */ public function get_upgrade_messages() { return $this->messages; } /** - * @param string|array|WP_Error $data + * Stores a message about the upgrade. + * + * @since 3.7.0 + * + * @param string|array|WP_Error $data Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $data, ...$args ) { @@ -103,12 +111,18 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { } /** + * Creates a new output buffer. + * + * @since 3.7.0 */ public function header() { ob_start(); } /** + * Retrieves the buffered content, deletes the buffer, and processes the output. + * + * @since 3.7.0 */ public function footer() { $output = ob_get_clean(); diff --git a/wp-admin/includes/class-wp-ajax-upgrader-skin.php b/wp-admin/includes/class-wp-ajax-upgrader-skin.php index cd4175cd47..27d8beb740 100644 --- a/wp-admin/includes/class-wp-ajax-upgrader-skin.php +++ b/wp-admin/includes/class-wp-ajax-upgrader-skin.php @@ -81,7 +81,7 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin { } /** - * Stores a log entry for an error. + * Stores an error message about the upgrade. * * @since 4.6.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it @@ -116,13 +116,13 @@ class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin { } /** - * Stores a log entry. + * Stores a message about the upgrade. * * @since 4.6.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it * to the function signature. * - * @param string|array|WP_Error $data Log entry data. + * @param string|array|WP_Error $data Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $data, ...$args ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 1bd8b9d4da..928dc77681 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta4-49595'; +$wp_version = '5.6-beta4-49596'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.