WordPress.org

Make WordPress Core

Changeset 9577


Ignore:
Timestamp:
11/08/08 23:27:49 (6 years ago)
Author:
ryan
Message:

Eliminate chaining for php 4 compat. Props DD32. fixes #5324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/archive.php

    r9234 r9577  
    5656    <?php else : 
    5757 
    58         if (is_category()) // If this is a category archive 
     58        if ( is_category() ) { // If this is a category archive 
    5959            printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false)); 
    60         else if (is_date()) // If this is a date archive 
     60        } else if ( is_date() ) { // If this is a date archive 
    6161            echo("<h2>Sorry, but there aren't any posts with this date.</h2>"); 
    62         else if (is_author()) // If this is a category archive 
    63             printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", get_userdatabylogin(get_query_var('author_name'))->display_name); 
    64         else 
     62        } else if ( is_author() ) { // If this is a category archive 
     63            $userdata = get_userdatabylogin(get_query_var('author_name')); 
     64            printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name); 
     65        } else { 
    6566            echo("<h2 class='center'>No posts found.</h2>"); 
     67        } 
    6668        get_search_form(); 
    6769 
Note: See TracChangeset for help on using the changeset viewer.