From 36e994b88ceb231b34bde6ae3a4023ceb0f93d4e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 27 Mar 2023 15:09:09 +0000 Subject: [PATCH] Docs: Clarify the `::hide_process_failed()` return value in plugin and theme installer. Follow-up to [48390]. Props sakibmd, jrf, patelmohip, akmelias. Fixes #57680. git-svn-id: https://develop.svn.wordpress.org/trunk@55595 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-plugin-installer-skin.php | 2 +- src/wp-admin/includes/class-theme-installer-skin.php | 2 +- src/wp-admin/includes/class-wp-upgrader-skin.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-plugin-installer-skin.php b/src/wp-admin/includes/class-plugin-installer-skin.php index a431b16107..2419089677 100644 --- a/src/wp-admin/includes/class-plugin-installer-skin.php +++ b/src/wp-admin/includes/class-plugin-installer-skin.php @@ -66,7 +66,7 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin { * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. - * @return bool + * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { if ( diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php index a4f7bf1a40..2c880be5b7 100644 --- a/src/wp-admin/includes/class-theme-installer-skin.php +++ b/src/wp-admin/includes/class-theme-installer-skin.php @@ -66,7 +66,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. - * @return bool + * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { if ( diff --git a/src/wp-admin/includes/class-wp-upgrader-skin.php b/src/wp-admin/includes/class-wp-upgrader-skin.php index d0d2a39b01..111e151e08 100644 --- a/src/wp-admin/includes/class-wp-upgrader-skin.php +++ b/src/wp-admin/includes/class-wp-upgrader-skin.php @@ -270,7 +270,7 @@ class WP_Upgrader_Skin { * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. - * @return bool + * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { return false;