Ticket #30970: 30970.patch
File 30970.patch, 835 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 public function setup_postdata( $p ost) {4575 global $id, $authordata, $currentday, $currentmonth, $p age, $pages, $multipage, $more, $numpages;4574 public function setup_postdata( $p ) { 4575 global $id, $authordata, $currentday, $currentmonth, $post, $page, $pages, $multipage, $more, $numpages; 4576 4576 4577 if ( ! ( $p instanceof WP_Post ) ) { 4578 $p = get_post( $p ); 4579 } 4580 4581 $post = $p; 4582 4577 4583 $id = (int) $post->ID; 4578 4584 4579 4585 $authordata = get_userdata($post->post_author);