Eliminate chaining for php 4 compat. Props DD32. fixes #5324
git-svn-id: http://svn.automattic.com/wordpress/trunk@9577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ff6eb8ef7
commit
544ea955d8
|
@ -55,14 +55,16 @@ get_header();
|
||||||
</div>
|
</div>
|
||||||
<?php else :
|
<?php else :
|
||||||
|
|
||||||
if (is_category()) // If this is a category archive
|
if ( is_category() ) { // If this is a category archive
|
||||||
printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
|
printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
|
||||||
else if (is_date()) // If this is a date archive
|
} else if ( is_date() ) { // If this is a date archive
|
||||||
echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
|
echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
|
||||||
else if (is_author()) // If this is a category archive
|
} else if ( is_author() ) { // If this is a category archive
|
||||||
printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", get_userdatabylogin(get_query_var('author_name'))->display_name);
|
$userdata = get_userdatabylogin(get_query_var('author_name'));
|
||||||
else
|
printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
|
||||||
|
} else {
|
||||||
echo("<h2 class='center'>No posts found.</h2>");
|
echo("<h2 class='center'>No posts found.</h2>");
|
||||||
|
}
|
||||||
get_search_form();
|
get_search_form();
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
Loading…
Reference in New Issue