Skip to:
Content

bbPress.org

Changeset 7186


Ignore:
Timestamp:
01/04/2021 03:40:20 AM (4 years 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 branches/2.6 for 2.6.7. Fixes #3414.

Props dilipbheda, isabel104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/users/template.php

    r7176 r7186  
    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.