Making WordPress.org

Changeset 6415


Ignore:
Timestamp:
01/22/2018 10:04:01 PM (6 years ago)
Author:
coffee2code
Message:

Handbook plugin: Set parent_id earlier, outside of cache handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/navigation.php

    r6414 r6415  
    170170        }
    171171
    172         $parent_id = false;
     172        $parent_id = wp_get_post_parent_id( $post );
    173173
    174174        // Get the hierarchically and menu_order ordered list of handbook pages.
     
    178178                $sort_column = array( 'menu_order' => 'ASC', 'post_title' => 'ASC' );
    179179            }
    180 
    181             $parent_id = wp_get_post_parent_id( $post );
    182180
    183181            $handbook_pages = get_posts( array(
Note: See TracChangeset for help on using the changeset viewer.