Skip to content

Commit

Permalink
Add is_super_admin() check
Browse files Browse the repository at this point in the history
  • Loading branch information
Debarghya-Banerjee committed Oct 31, 2024
1 parent 10200ee commit e019696
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 ) {
if ( ( '1' === $current_blog->archived || '1' === $current_blog->spam || '1' === $current_blog->deleted ) && ! is_super_admin() ) {
status_header( 404 );
die( '404 — File not found.' );
}
Expand Down

0 comments on commit e019696

Please sign in to comment.