Ticket #9788: 9788.diff
| File 9788.diff, 571 bytes (added by Denis-de-Bernardy, 4 years ago) |
|---|
-
wp-includes/post-template.php
199 199 else 200 200 $file = $pagenow; //$_SERVER['PHP_SELF']; 201 201 202 if ( $page > count($pages) ) // if the requested page doesn't exist 202 if ( !$multipage ) 203 $page = 1; 204 elseif ( $page > count($pages) ) // if the requested page doesn't exist 203 205 $page = count($pages); // give them the highest numbered page that DOES exist 204 206 205 207 $content = $pages[$page-1];
