Ticket #18118: 18118.patch
File 18118.patch, 800 bytes (added by , 13 years ago) |
---|
-
wp-includes/post-template.php
430 430 $classes[] = 'single'; 431 431 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 432 432 $classes[] = 'postid-' . $post_id; 433 $classes[] = $post->post_name; 433 434 434 435 // Post Format 435 436 $post_format = get_post_format( $post->ID ); … … 478 479 $post = get_page($page_id); 479 480 480 481 $classes[] = 'page-id-' . $page_id; 482 $classes[] = $post->post_name; 481 483 482 484 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) ) ) 483 485 $classes[] = 'page-parent';