[wp-trac] [WordPress Trac] #26876: Default widgets causing unnecessary database queries
WordPress Trac
noreply at wordpress.org
Thu Aug 6 18:51:42 UTC 2015
#26876: Default widgets causing unnecessary database queries
--------------------------+------------------------------
Reporter: codydh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.0
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by dlh):
[attachment:26876.3.patch] would have `WP_Widget::get_settings()` call
`WP_Widget::save_settings()` with an empty array when no option is found
in the database and the `alt_option_name` property isn't set. On the next
request, the widget option would be autoloaded and not generate another
query.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26876#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list