Ticket #11331: 11331.diff
| File 11331.diff, 556 bytes (added by , 16 years ago) |
|---|
-
wp-includes/post-template.php
427 427 $pageID = $wp_query->post->ID; 428 428 429 429 $classes[] = 'page-id-' . $pageID; 430 $classes[] = 'page-slug-' . sanitize_html_class( $wp_query->post->post_name, '' ); 430 431 431 432 if ( $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' LIMIT 1", $pageID) ) ) 432 433 $classes[] = 'page-parent';