mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-02 20:52:50 +00:00
Docs: Add a missing return notation and to the DocBlock for WP_Session_Tokens::get_instance().
Also adds an inline reference to the `session_token_manager` hook in the description. Props Shelob9 for the initial patch. Fixes #40102. git-svn-id: https://develop.svn.wordpress.org/trunk@40998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
944c7c694c
commit
7bc5812ab3
@ -35,16 +35,17 @@ abstract class WP_Session_Tokens {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a session token manager instance for a user.
|
||||
* Retrieves a session token manager instance for a user.
|
||||
*
|
||||
* This method contains a filter that allows a plugin to swap out
|
||||
* the session manager for a subclass of WP_Session_Tokens.
|
||||
* This method contains a {@see 'session_token_manager'} filter, allowing a plugin to swap out
|
||||
* the session manager for a subclass of `WP_Session_Tokens`.
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @access public
|
||||
* @static
|
||||
*
|
||||
* @param int $user_id User whose session to manage.
|
||||
* @return WP_User_Meta_Session_Tokens WP_User_Meta_Session_Tokens class instance by default.
|
||||
*/
|
||||
final public static function get_instance( $user_id ) {
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user