Make WordPress Core

Changeset 18412


Ignore:
Timestamp:
07/11/2011 05:31:57 AM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r18176 r18412  
    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.