Make WordPress Core

Changeset 18413


Ignore:
Timestamp:
07/11/2011 05:32:19 AM (15 years ago)
Author:
nacin
Message:

Restore page-template-default body class. props peterwilsoncc, fixes #18018 for 3.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/wp-includes/post-template.php

    r18176 r18413  
    490490                        $classes[] = 'page-template';
    491491                        $classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' );
     492                } else {
     493                        $classes[] = 'page-template-default';                   
    492494                }
    493495        } elseif ( is_search() ) {
Note: See TracChangeset for help on using the changeset viewer.