[wp-trac] [WordPress Trac] #58673: WordPress database error when installing PHPUnit tests
WordPress Trac
noreply at wordpress.org
Tue Jul 11 18:10:38 UTC 2023
#58673: WordPress database error when installing PHPUnit tests
--------------------------+---------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by spacedmonkey):
I strongly recommend removing these lines
{{{#!php
add_action( 'wp_loaded', array( 'WP_Duotone', 'set_global_styles_presets'
), 10 );
add_action( 'wp_loaded', array( 'WP_Duotone',
'set_global_style_block_names' ), 10 );
}}}
Loading these method on every requests is wasteful, as duo tone is not
used on all pages. REST API calls for example.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58673#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list