WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/07/2016 08:48:24 PM (4 years ago)
Author:
jeremyfelt
Message:

Admin: Allow for the consistent filtering of auth_redirect_scheme

Fixes #37047.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r37544 r37651  
    987987    }
    988988
    989     if ( is_user_admin() ) {
    990         $scheme = 'logged_in';
    991     } else {
    992         /**
    993          * Filters the authentication redirect scheme.
    994          *
    995          * @since 2.9.0
    996          *
    997          * @param string $scheme Authentication redirect scheme. Default empty.
    998          */
    999         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1000     }
     989    /**
     990     * Filters the authentication redirect scheme.
     991     *
     992     * @since 2.9.0
     993     *
     994     * @param string $scheme Authentication redirect scheme. Default empty.
     995     */
     996    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1001997
    1002998    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.