[buddypress-trac] [BuddyPress Trac] #8320: 404 error for the next page after loading any BuddyPress page

buddypress-trac noreply at wordpress.org
Wed May 22 07:22:47 UTC 2024


#8320: 404 error for the next page after loading any BuddyPress page
--------------------------+------------------------------
 Reporter:  dmcsupport    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  Awaiting Review
Component:  Core          |     Version:  6.0.0
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by gujjarhere):

 Go with this, I think its the best for 404 error for the next page after
 loading any BuddyPress page.


 {{{
 function bp_fix_404_issue() {
     if ( ! is_buddypress() && $GLOBALS['wp_query']->is_404() ) {
         status_header( 200 );
     }
 }
 add_action( 'wp', 'bp_fix_404_issue' );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8320#comment:15>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list