Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18176 r17685  
    530530    }
    531531
    532     if ( ! empty( $class ) ) {
     532    if ( !empty( $class ) ) {
    533533        if ( !is_array( $class ) )
    534534            $class = preg_split( '#\s+#', $class );
    535535        $classes = array_merge( $classes, $class );
    536     } else {
    537         // Ensure that we always coerce class to being an array.
    538         $class = array();
    539536    }
    540537
     
    12461243    // We have no argument passed so just see if a page_template has been specified
    12471244    if ( empty( $template ) ) {
    1248         if ( !empty( $page_template ) and ( 'default' != $page_template ) ) {
     1245        if (!empty( $page_template ) ) {
    12491246            return true;
    12501247        }
     
    13521349        array_unshift( $revisions, $post );
    13531350
    1354     $rows = $right_checked = '';
     1351    $rows = '';
    13551352    $class = false;
    13561353    $can_edit_post = current_user_can( 'edit_post', $post->ID );
Note: See TracChangeset for help on using the changeset viewer.