diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 6adec3426..081b391b7 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -229,7 +229,7 @@ function _check_theme_deprecated_files() { $files[] = 'sidebar.php'; // Only notify if both are missing as you can use one or the other - if ( ! ( $comment = locate_template( array( 'comments.php' ) ) ) && ! ( $comment_popup = locate_template( array( 'comments-popup.php' ) ) ) ) { + if ( ! locate_template( array( 'comments.php' ) ) && ! locate_template( array( 'comments-popup.php' ) ) ) { $files[] = 'comments.php'; $files[] = 'comments-popup.php'; }