Changing of the number of posts per XML sitemap one fix
-
#1 Some of us have big sites build on WordPress and because our content is so important we don’t cache the sitemap.
I saw that you have implemented
“Allow changing of the number of posts per XML sitemap, to prevent memory issues on certain installs.”
This feature would be very good but now it is not working as expected.#2 in wpseo-functions.php @ line 171
change'%%excerpt%%' => ( !empty( $r->post_excerpt ) ) ? strip_tags( $r->post_excerpt ) : utf8_encode( substr( strip_shortcodes( strip_tags( utf8_decode( $r->post_content ) ) ), 0, 155 ) ),
into
'%%excerpt%%' => ( !empty( $r->post_excerpt ) ) ? strip_tags( $r->post_excerpt ) : ( substr( strip_shortcodes( strip_tags( ( $r->post_content ) ) ), 0, 155 ) ),
So characters like ?, ?, ? are not replaced by ?
- The topic ‘Changing of the number of posts per XML sitemap one fix’ is closed to new replies.