[wp-trac] [WordPress Trac] #54401: Fix fatal error in /wp-admin/load-styles.php

WordPress Trac noreply at wordpress.org
Tue Nov 9 14:43:15 UTC 2021


#54401: Fix fatal error in /wp-admin/load-styles.php
--------------------------------------+---------------------
 Reporter:  Mamaduka                  |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.9
Component:  Themes                    |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by Mamaduka):

 @audrasjb, I tried including `link-template.php` in `load-styles.php`, but
 this caused a different error:


 {{{
 Fatal error: Cannot redeclare home_url() (previously declared in
 ~/Projects/trunk/src/wp-admin/includes/noop.php:84) in
 ~/Projects/trunk/src/wp-includes/link-template.php on line 3279
 }}}

 I think relocating the functions is the best option for now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54401#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list