Skip to:
Content

bbPress.org

Changeset 7185


Ignore:
Timestamp:
01/04/2021 03:39:40 AM (11 months ago)
Author:
johnjamesjacoby
Message:

Notices: correct string type checking of "loggedout" $_GET parameter.

This commit stops checking for a boolean and starts checking for a string, allowing for the "You are now logged out." notice to correctly appear as intended.

In trunk for 2.7.0. See #3414.

Props dilipbheda, isabel104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/template.php

    r7175 r7185  
    18271827
    18281828    // loggedout was passed
    1829     if ( ! empty( $_GET['loggedout'] ) && ( true === $_GET['loggedout'] ) ) {
     1829    if ( ! empty( $_GET['loggedout'] ) && ( 'true' === $_GET['loggedout'] ) ) {
    18301830        bbp_add_error( 'loggedout', esc_html__( 'You are now logged out.', 'bbpress' ), 'message' );
    18311831
Note: See TracChangeset for help on using the changeset viewer.