This was an annoying bug on one of my wordpress + buddypress for a while and the fix is amazingly simple :
Edit your wp-includes/query.php around line 2762
// Always sanitize foreach ( $this->posts as $i => $post ) { $this->posts[$i] = sanitize_post( $post, 'raw' ); }
and replace by :
// Always sanitize if ( $this->post_count > 0 ) { foreach ( $this->posts as $i => $post ) { $this->posts[$i] = sanitize_post( $post, 'raw' ); } }
Latest posts by Fab (see all)
- La Horde du Contrevent : review - 13 October 2024
- For Whom the Bells Tolls: review - 4 August 2024
- Self Aware On Air Neon Sign - 8 June 2024
That was amazing thanks!