[wp-trac] [WordPress Trac] #58673: WordPress database error when installing PHPUnit tests

WordPress Trac noreply at wordpress.org
Tue Jul 11 20:40:30 UTC 2023


#58673: WordPress database error when installing PHPUnit tests
--------------------------+--------------------------
 Reporter:  Chouby        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  6.3
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 joemcgill]:
 > While ensuring this isn't run during `wp_installing()` would be
 sufficient to fix this issue, it would be nice to fix the performance
 regression at the same time, by only calling that method when it's needed.

 Yeah, removing this from `wp_loaded` and calling conditionally when needed
 would be ideal.

 [https://github.com/WordPress/wordpress-develop/pull/4831 PR #4831] looks
 good to me at a glance.

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


More information about the wp-trac mailing list