Ticket #30970: 30970.2.patch
File 30970.2.patch, 678 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/query.php
4568 4568 * 4569 4569 * @since 4.1.0 4570 4570 * 4571 * @param WP_Post $p ost Post data.4571 * @param WP_Post $p Post data or post ID. 4572 4572 * @return bool True when finished. 4573 4573 */ 4574 4574 public function setup_postdata( $post ) { 4575 4575 global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; 4576 4576 4577 if ( ! ( $post instanceof WP_Post ) ) { 4578 $post = get_post( $post ); 4579 } 4580 4577 4581 $id = (int) $post->ID; 4578 4582 4579 4583 $authordata = get_userdata($post->post_author);