From b733c05fbcba9290b00c51ac5ad9bbc70d8be1ca Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 18 Sep 2016 20:15:46 +0000 Subject: [PATCH] Docs: Correct a comment and `@return` entry in `WP_Upgrader::create_lock()`. Props markshep. Fixes #38089. git-svn-id: https://develop.svn.wordpress.org/trunk@38622 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 485197c49a..acfae5be06 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -833,7 +833,7 @@ class WP_Upgrader { * @param string $lock_name The name of this unique lock. * @param int $release_timeout Optional. The duration in seconds to respect an existing lock. * Default: 1 hour. - * @return bool False if a lock couldn't be created or if the lock is no longer valid. True otherwise. + * @return bool False if a lock couldn't be created or if the lock is still valid. True otherwise. */ public static function create_lock( $lock_name, $release_timeout = null ) { global $wpdb; @@ -853,7 +853,7 @@ class WP_Upgrader { return false; } - // Check to see if the lock is still valid. If not, bail. + // Check to see if the lock is still valid. If it is, bail. if ( $lock_result > ( time() - $release_timeout ) ) { return false; }