[wp-trac] [WordPress Trac] #39703: wp-signup.php & wp-activate.php are doing an avoidable posts query
WordPress Trac
noreply at wordpress.org
Tue Jul 2 19:24:56 UTC 2024
#39703: wp-signup.php & wp-activate.php are doing an avoidable posts query
------------------------------------+-------------------------------------
Reporter: imath | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: multisite, performance
------------------------------------+-------------------------------------
Changes (by rajinsharwar):
* keywords: has-patch needs-testing-info early => has-patch 2nd-opinion
Comment:
Well, if we just simply require the template-loader.php, instead of wp-
blog-header.php, it solves the issue of those unnecessary queries. But, I
am afraid this will break some plugin functionalities, for example in this
case Query Monitor. The Query Monitor's debug bar doesn't show there if we
do not call the wp() function.
I want to propose a different approach. Why don't we modify the
parse_request() method or the main() method in WP class to not run any WP
QUERY in the query args is empty?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39703#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list