Opened 4 years ago
Closed 4 years ago
#3414 closed defect (bug) (fixed)
"You are now logged out" notice never appears
Reported by: | isabel104 | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6.7 | Priority: | low |
Severity: | minor | Version: | 2.6.6 |
Component: | Appearance - Theme Compatibility | Keywords: | has-patch |
Cc: |
Description
Steps to reproduce the problem:
- Visit any forum topic while logged in.
- Log out.
- Expected result: a notice saying "You are now logged out."
- Instead, it doesn't show any notice after logging out.
Solution:
I don't know how to submit patches on Trac, but this is the solution:
In file: "bbPress/src/includes/users/template.php" (https://bbpress.trac.wordpress.org/browser/trunk/src/includes/users/template.php)
at line: 1829
Change:
if ( ! empty( $_GET['loggedout'] ) && ( true === $_GET['loggedout'] ) ) {
...to:
if ( ! empty( $_GET['loggedout'] ) && ( 'true' === $_GET['loggedout'] ) ) {
... because GET parmeters are not typed, so 'true' should be a string since the GET param will never be a bool type.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 7185: