WordPress.org

Make WordPress Core

Changeset 38622


Ignore:
Timestamp:
09/18/2016 08:15:46 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct a comment and @return entry in WP_Upgrader::create_lock().

Props markshep.
Fixes #38089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r38470 r38622  
    834834     * @param int    $release_timeout Optional. The duration in seconds to respect an existing lock.
    835835     *                                Default: 1 hour.
    836      * @return bool False if a lock couldn't be created or if the lock is no longer valid. True otherwise.
     836     * @return bool False if a lock couldn't be created or if the lock is still valid. True otherwise.
    837837     */
    838838    public static function create_lock( $lock_name, $release_timeout = null ) {
     
    854854            }
    855855
    856             // Check to see if the lock is still valid. If not, bail.
     856            // Check to see if the lock is still valid. If it is, bail.
    857857            if ( $lock_result > ( time() - $release_timeout ) ) {
    858858                return false;
Note: See TracChangeset for help on using the changeset viewer.