Changeset 38622
- Timestamp:
- 09/18/2016 08:15:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r38470 r38622 834 834 * @param int $release_timeout Optional. The duration in seconds to respect an existing lock. 835 835 * Default: 1 hour. 836 * @return bool False if a lock couldn't be created or if the lock is no longervalid. True otherwise.836 * @return bool False if a lock couldn't be created or if the lock is still valid. True otherwise. 837 837 */ 838 838 public static function create_lock( $lock_name, $release_timeout = null ) { … … 854 854 } 855 855 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. 857 857 if ( $lock_result > ( time() - $release_timeout ) ) { 858 858 return false;
Note: See TracChangeset
for help on using the changeset viewer.