Hello,
I found some strange behavior of WP using posts/pages pagination (using quick tag [code]<!--next-->[/code] inside content), whet I was testing qTranslate plugin.
So i found, that if WP uses qTranslate plugin it can't use pagination for posts/pages (inside single page), because core script wp-includes/query.php is nott using content filter for content pagination. Problem is that qTranslate plugin is using filter for content: every post/page is written in multiple language.
Everything works just fine, when posts/pages are in the posts loop but in single post/page content is not filtered.
I do not know what is politics about aditional hooks, but maybe it is possible add one more hook for that purpose or just add my code, that i suggested.
So i found solution for that problem:
file wp-includes/query.php
Instead of this code:
$content = $post->post_content;
if ( strpos( $content, '<!--nextpage-->' ) ) {
we should use this one:
$content = $post->post_content;
$content = apply_filters('the_content', $post->post_content);
if ( strpos( $content, '<!--nextpage-->' ) ) {
This code adds aditional filter for content, couse all the content that is being used for post/page is not filtered for pagination and i thin for myselft, that it is bug/feature, that should be considered for reviewing.
Thank you for your attention and feel free to contact for more details.