Make WordPress Core

Changeset 40998


Ignore:
Timestamp:
07/04/2017 05:15:47 PM (7 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-session-tokens.php

    r39670 r40998  
    3636
    3737    /**
    38      * Get a session token manager instance for a user.
    39      *
    40      * This method contains a filter that allows a plugin to swap out
    41      * the session manager for a subclass of WP_Session_Tokens.
     38     * Retrieves a session token manager instance for a user.
     39     *
     40     * This method contains a {@see 'session_token_manager'} filter, allowing a plugin to swap out
     41     * the session manager for a subclass of `WP_Session_Tokens`.
    4242     *
    4343     * @since 4.0.0
     
    4646     *
    4747     * @param int $user_id User whose session to manage.
     48     * @return WP_User_Meta_Session_Tokens WP_User_Meta_Session_Tokens class instance by default.
    4849     */
    4950    final public static function get_instance( $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.