From 085e0c34870b1c5cbdcd1dd71cb8860df29cad47 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 7 Feb 2010 21:07:35 +0000 Subject: [PATCH] Ensure we are PHP4 compat. Fixes #12167 props blepoxp. git-svn-id: https://develop.svn.wordpress.org/trunk@13014 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 133f851738..aef4482cf4 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -711,7 +711,8 @@ function get_archive_template() { */ function get_author_template() { $author_id = absint( get_query_var( 'author' ) ); - $author = get_user_by( 'id', $author_id )->user_nicename; + $author = get_user_by( 'id', $author_id ); + $author = $author->user_nicename; $templates = array();