WordPress.org

Make WordPress Core

Changeset 37765


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 3.8 branch.

See #37047.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r36453 r37765  
    756756    }
    757757
    758     if ( is_user_admin() )
    759         $scheme = 'logged_in';
    760     else
    761         $scheme = apply_filters( 'auth_redirect_scheme', '' );
     758    /**
     759     * Filters the authentication redirect scheme.
     760     *
     761     * @since 2.9.0
     762     *
     763     * @param string $scheme Authentication redirect scheme. Default empty.
     764     */
     765    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    762766
    763767    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.