From 19751bd0d37000f910446d010d7ac9df6eb75d2d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Jul 2021 10:05:33 +0000 Subject: [PATCH] Docs: Correct description for the `upgrader_pre_install` filter. Props ilovecats7. Fixes #53546. git-svn-id: https://develop.svn.wordpress.org/trunk@51329 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index e456191dae..0385eae576 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -478,9 +478,8 @@ class WP_Upgrader { /** * Filters the install response before the installation has started. * - * Returning a truthy value, or one that could be evaluated as a WP_Error - * will effectively short-circuit the installation, returning that value - * instead. + * Returning a value that could be evaluated as a `WP_Error` will effectively + * short-circuit the installation, returning that value instead. * * @since 2.8.0 *