mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Build/Test tools: Revert [40239] due to unrelated changes.
See #39486 git-svn-id: https://develop.svn.wordpress.org/trunk@40240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -164,4 +164,21 @@ function _upload_dir_https( $uploads ) {
|
||||
|
||||
// Skip `setcookie` calls in auth_cookie functions due to warning:
|
||||
// Cannot modify header information - headers already sent by ...
|
||||
tests_add_filter( 'send_auth_cookies', '__return_false' );
|
||||
|
||||
function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token = '' ) {
|
||||
$auth_cookie = null;
|
||||
$expire = null;
|
||||
$expiration = null;
|
||||
$user_id = null;
|
||||
$scheme = null;
|
||||
/** This action is documented in wp-inclues/pluggable.php */
|
||||
do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme );
|
||||
$logged_in_cookie = null;
|
||||
/** This action is documented in wp-inclues/pluggable.php */
|
||||
do_action( 'set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in' );
|
||||
}
|
||||
|
||||
function wp_clear_auth_cookie() {
|
||||
/** This action is documented in wp-inclues/pluggable.php */
|
||||
do_action( 'clear_auth_cookie' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user