]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/template.php
WordPress 4.2.4-scripts
[autoinstalls/wordpress.git] / wp-includes / template.php
index b02486a39d9e6cc11527c50004b613fa3c0f912c..cfe9bb06aa8f3312b74c9962837fef730e9ca458 100644 (file)
@@ -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;
                }