wp/wp-includes/class-wp-recovery-mode-link-service.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    63 	/**
    63 	/**
    64 	 * Enters recovery mode when the user hits wp-login.php with a valid recovery mode link.
    64 	 * Enters recovery mode when the user hits wp-login.php with a valid recovery mode link.
    65 	 *
    65 	 *
    66 	 * @since 5.2.0
    66 	 * @since 5.2.0
    67 	 *
    67 	 *
    68 	 * @global string $pagenow
    68 	 * @global string $pagenow The filename of the current screen.
    69 	 *
    69 	 *
    70 	 * @param int $ttl Number of seconds the link should be valid for.
    70 	 * @param int $ttl Number of seconds the link should be valid for.
    71 	 */
    71 	 */
    72 	public function handle_begin_link( $ttl ) {
    72 	public function handle_begin_link( $ttl ) {
    73 		if ( ! isset( $GLOBALS['pagenow'] ) || 'wp-login.php' !== $GLOBALS['pagenow'] ) {
    73 		if ( ! isset( $GLOBALS['pagenow'] ) || 'wp-login.php' !== $GLOBALS['pagenow'] ) {