Ticket #3039: wp_link_pages_fix.diff
| File wp_link_pages_fix.diff, 573 bytes (added by , 19 years ago) |
|---|
-
wp-includes/post-template.php
76 76 else 77 77 $file = $pagenow; //$_SERVER['PHP_SELF']; 78 78 79 if ( $page > count($pages) ) // if the requested page doesn't exist 80 $page = count($pages); // give them the highest numbered page that DOES exist 81 79 82 $content = $pages[$page-1]; 80 83 if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) { 81 84 $content = explode($matches[0], $content, 2);