in /wp-includes/query.php change this
/`/ Always sanitize
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, ‘raw’ );
}`
to
/`/ Sanitize before caching so it’ll only get done once
for ( $i = 0; $i < $this->post_count; $i++ ) {
$this->posts[$i] = sanitize_post($this->posts[$i], ‘raw’);
}`
Poor hack I know!
// Always sanitize
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, 'raw' );
}
to
// Sanitize before caching so it'll only get done once
for ( $i = 0; $i < $this->post_count; $i++ ) {
$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
}
in /wp-includes/query.php change this
// Always sanitize
foreach ( $this->posts as $i => $post ) {
$this->posts[$i] = sanitize_post( $post, 'raw' );
}
to
// Sanitize before caching so it'll only get done once
for ( $i = 0; $i < $this->post_count; $i++ ) {
$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
}
I am having this in multiple sites.
I really do not want to hack the WP code (now on 3.3) of all these sites and get stuck to the maintenance.
Will there be a plugin fix soon ?
Thanks,
I tried it but I am getting lots of 404 in almost al .xml-files.
How can I force regeneration of the whole lot ?
Thanks,
There is no regeneration, since they are all generated on the fly. Could you post the URL to a not-working example?
E.g:
Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
Most .xml files show this.
Your sitemap looks good and passes all online validation tools. Please resubmit it in the Google Webmaster Tools, i guess Google is still reporting the errors because of the previous problems.
I did resubmit already. And again.
I’ll give it an other day to see if it is picking up/reporting on ald stuff.
Thanks,
Will it be wise tweaking wp code ?? Will it hamper in future ?
Will it be wise tweaking wp code ?? Will it hamper in future ?
No not clever at all. hence my earlier comment
I really do not want to hack the WP code (now on 3.3) of all these sites and get stuck to the maintenance.
Will there be a plugin fix soon ?
It has been fixed in the beta version.