Changeset 28696 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 06/07/2014 03:21:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r28654 r28696 595 595 $classes[] = 'page-id-' . $page_id; 596 596 597 if ( $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' AND post_status = 'publish' LIMIT 1", $page_id) ) )597 if ( get_pages( array( 'parent' => $page_id, 'number' => 1 ) ) ) { 598 598 $classes[] = 'page-parent'; 599 } 599 600 600 601 if ( $post->post_parent ) {
Note: See TracChangeset
for help on using the changeset viewer.