X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/849f15aeed7a5e39314057bdc0064d8edd60dd7d..5e031ad59895b5682d1509675cafe9f2c5081c12:/wp-includes/template.php diff --git a/wp-includes/template.php b/wp-includes/template.php index b02486a3..cfe9bb06 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -135,7 +135,7 @@ function get_author_template() { $templates = array(); - if ( is_a( $author, 'WP_User' ) ) { + if ( $author instanceof WP_User ) { $templates[] = "author-{$author->user_nicename}.php"; $templates[] = "author-{$author->ID}.php"; } @@ -467,7 +467,7 @@ function locate_template($template_names, $load = false, $require_once = true ) if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { $located = STYLESHEETPATH . '/' . $template_name; break; - } else if ( file_exists(TEMPLATEPATH . '/' . $template_name) ) { + } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) { $located = TEMPLATEPATH . '/' . $template_name; break; }