Skip to content

Commit

Permalink
Update ms-files.php
Browse files Browse the repository at this point in the history
  • Loading branch information
audrasjb authored Feb 3, 2025
1 parent e019696 commit afc40d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/ms-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

ms_file_constants();

if ( ( '1' === $current_blog->archived || '1' === $current_blog->spam || '1' === $current_blog->deleted ) && ! is_super_admin() ) {
if ( ! is_super_admin() && ( '1' === $current_blog->archived || '1' === $current_blog->spam || '1' === $current_blog->deleted ) ) {
status_header( 404 );
die( '404 — File not found.' );
}
Expand Down

0 comments on commit afc40d9

Please sign in to comment.