From 05a947c05ac8902522b17db2739a649645dbdbdc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 18 Sep 2016 20:16:29 +0000 Subject: [PATCH] Docs: Correct a comment and `@return` entry in `WP_Upgrader::create_lock()`. Props markshep. Fixes #38089. Built from https://develop.svn.wordpress.org/trunk@38622 git-svn-id: http://core.svn.wordpress.org/trunk@38565 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 485197c49a..acfae5be06 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 387452629a..a9a54152cb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38621'; +$wp_version = '4.7-alpha-38622'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.