Make WordPress Core

Changeset 37766 for branches/3.7


Ignore:
Timestamp:
06/21/2016 02:12:45 PM (8 years ago)
Author:
jeremyfelt
Message:

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 3.7 branch.

See #37047.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

  • branches/3.7/src/wp-includes/pluggable.php

    r36454 r37766  
    759759    }
    760760
    761     if ( is_user_admin() )
    762         $scheme = 'logged_in';
    763     else
    764         $scheme = apply_filters( 'auth_redirect_scheme', '' );
     761    /**
     762     * Filters the authentication redirect scheme.
     763     *
     764     * @since 2.9.0
     765     *
     766     * @param string $scheme Authentication redirect scheme. Default empty.
     767     */
     768    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    765769
    766770    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.