diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php index 57f1db1ce0..b466bc2cfe 100644 --- a/wp-includes/template-loader.php +++ b/wp-includes/template-loader.php @@ -86,7 +86,7 @@ if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) : */ if ( $template = apply_filters( 'template_include', $template ) ) { include( $template ); - } elseif ( is_user_logged_in() ) { + } elseif ( current_user_can( 'install_themes' ) ) { $theme = wp_get_theme(); if ( $theme->errors() ) { wp_die( $theme->errors() ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 31eedf2d37..95caa4ec84 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-1453073892319'; +$wp_version = '4.5-alpha-1453075152649'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.