mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Ensure we are PHP4 compat. Fixes #12167 props blepoxp.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d9989e775
commit
f65140c7b3
@ -711,7 +711,8 @@ function get_archive_template() {
|
|||||||
*/
|
*/
|
||||||
function get_author_template() {
|
function get_author_template() {
|
||||||
$author_id = absint( get_query_var( 'author' ) );
|
$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();
|
$templates = array();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user