Ticket #6646: 6646.4.patch
File 6646.4.patch, 1.2 KB (added by , 22 months ago) |
---|
-
wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php
336 336 } 337 337 338 338 if ( ! empty( $item['object_id'] ) && 'post_type' === $item['type'] ) { 339 foreach ( $this->mapping['posts'] as $ name => $id ) {339 foreach ( $this->mapping['posts'] as $id ) { 340 340 if ( $id !== $item['object_id'] ) { 341 341 continue; 342 342 } … … 502 502 } 503 503 504 504 $page_for_posts = $this->starter_content['options']['page_for_posts']; 505 $blog_post_name = $this->get_blog_post_name();505 //$blog_post_name = $this->get_blog_post_name(); 506 506 507 507 if ( ! empty( $query->query_vars['page_id'] ) && $query->query_vars['page_id'] != $page_for_posts ) { 508 508 $data = $this->find_data_by_id( $query->query_vars['page_id'], 'posts' ); … … 548 548 return array(); 549 549 } 550 550 551 foreach ( $this->starter_content[ $type ] as $ name => $data ) {551 foreach ( $this->starter_content[ $type ] as $data ) { 552 552 if ( $id === $data['ID'] ) { 553 553 return $data; 554 554 }