diff --git wp-includes/query.php wp-includes/query.php
index 04286aa..afca556 100644
|
|
|
function wp_old_slug_redirect() { |
| 3636 | 3636 | * @since 1.5.0 |
| 3637 | 3637 | * |
| 3638 | 3638 | * @param object $post Post data. |
| | 3639 | * @param boolean $paginate Whether or not to read the $page global set by the original global query. |
| 3639 | 3640 | * @uses do_action_ref_array() Calls 'the_post' |
| 3640 | 3641 | * @return bool True when finished. |
| 3641 | 3642 | */ |
| 3642 | | function setup_postdata( $post ) { |
| | 3643 | function setup_postdata( $post, $paginate = true ) { |
| 3643 | 3644 | global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; |
| 3644 | 3645 | |
| 3645 | 3646 | $id = (int) $post->ID; |
| … |
… |
function setup_postdata( $post ) { |
| 3650 | 3651 | $currentmonth = mysql2date('m', $post->post_date, false); |
| 3651 | 3652 | $numpages = 1; |
| 3652 | 3653 | $multipage = 0; |
| 3653 | | $page = get_query_var('page'); |
| | 3654 | $page = $paginate ? get_query_var('page') : 1; |
| 3654 | 3655 | if ( ! $page ) |
| 3655 | 3656 | $page = 1; |
| 3656 | 3657 | if ( is_single() || is_page() || is_feed() ) |