[wp-trac] [WordPress Trac] #63285: Call to undefined function is_super_admin() in /wp-includes/ms-files.php

WordPress Trac noreply at wordpress.org
Tue Apr 15 18:03:33 UTC 2025


#63285: Call to undefined function is_super_admin() in /wp-includes/ms-files.php
--------------------------------+-----------------------------
 Reporter:  verygoode           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  major               |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 After the release of 6.8, we have observed fatals across certain
 multisites.

 Specifically, when certain files are requested. E.g.,
 `/example/files/2014/01/img_1234.jpg` which reults in HTTP 500 and the
 fatal error below.

 {{{
 PHP Fatal error:  Uncaught Error: Call to undefined function
 is_super_admin() in /wordpress/core/6.8/wp-includes/ms-files.php:23
 Stack trace:
 #0 {main}
   thrown in /wordpress/core/6.8/wp-includes/ms-files.php on line 23
 }}}



 This appears related to https://core.trac.wordpress.org/changeset/59967

 ms-files.php leverages `define( 'SHORTINIT', true );` which makes
 `is_super_admin()` unavailable.

 Props @jmdodd for noticing the bump in related fatals.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63285>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list