[wp-trac] [WordPress Trac] #26876: Default widgets causing unnecessary database queries
WordPress Trac
noreply at wordpress.org
Tue Oct 13 01:12:14 UTC 2015
#26876: Default widgets causing unnecessary database queries
--------------------------+-----------------------------
Reporter: codydh | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Widgets | Version: 3.0
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35100"]:
{{{
#!CommitTicketReference repository="" revision="35100"
Widgets: when getting settings, and none exist, set them to empty to avoid
extraneous database queries on subsequent requests.
Adds unit tests.
Props kovshenin, MikeHansenMe, dlh.
Fixes #26876.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26876#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list