[wp-trac] [WordPress Trac] #13241: Wordpress 3.0 nightly build bug

WordPress Trac wp-trac at lists.automattic.com
Mon May 3 22:54:13 UTC 2010


#13241: Wordpress 3.0 nightly build bug
--------------------------+-------------------------------------------------
 Reporter:  musarika      |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new 
 Priority:  high          |   Milestone:  3.0 
Component:  Query         |     Version:  3.0 
 Severity:  normal        |    Keywords:      
--------------------------+-------------------------------------------------
 I am using wordpress 3.0, I upgraded to the latest nightly build.
 Everything else is working fine except for a small piece of code I have
 been using on a lot of my themes..

 <?php $parent = $post->ID; ?>

 <?php
 query_posts('orderby=menu_order&order=ASC&posts_per_page=-1&post_type=page&post_parent='.$parent);
 ?>

 After some debugging I realised that in the latest nightly build this code
 was changed in wp-includes/query.php // Correct is_* for page_on_front and
 page_for_posts

                 if (    $this->is_home &&
                                 'page' == get_option('show_on_front') &&
 get_option('page_on_front') &&
                                 ( empty($query) || !array_diff(
 array_keys($this->query), array('preview', 'page', 'paged', 'cpage') ) )
                                 ) {
                         $this->is_page = true;
                         $this->is_home = false;
                         $qv['page_id'] = get_option('page_on_front');
                         // Correct <!--nextpage--> for page_on_front
                         if ( !empty($qv['paged']) ) {
                                 $qv['page'] = $qv['paged'];
                                 unset($qv['paged']);
                         }
                 }

 I am not sure if this is a bug or I might need to find a work around. I
 hope my explanation is clear enough.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13241>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list