]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-upgrader.php
WordPress 4.7.2-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-upgrader.php
index 485197c49ac213bc20b17484990614134f08de49..acfae5be06479116cbea44998c54bd911cc03bda 100644 (file)
@@ -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;
                        }