mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Docs: Improve documentation for WP_Upgrader::release_lock()
, introduced in [36349].
See #34878. See #35986. Built from https://develop.svn.wordpress.org/trunk@36822 git-svn-id: http://core.svn.wordpress.org/trunk@36789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1dc0a9a5f7
commit
08e7c845cc
@ -799,14 +799,16 @@ class WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Release a lock created by `WP_Upgrader::create_lock()`.
|
||||
* Releases an upgrader lock.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @static
|
||||
*
|
||||
* @see WP_Upgrader::create_lock()
|
||||
*
|
||||
* @param string $lock_name The name of this unique lock.
|
||||
* @return bool
|
||||
* @return bool True if the lock was successfully released. False on failure.
|
||||
*/
|
||||
public static function release_lock( $lock_name ) {
|
||||
return delete_option( $lock_name . '.lock' );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-beta2-36821';
|
||||
$wp_version = '4.5-beta2-36822';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user