[wp-trac] [WordPress Trac] #26876: Default widgets causing unnecessary database queries

WordPress Trac noreply at wordpress.org
Wed Apr 29 20:22:08 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 westonruter):

 Related: #23909

 Note that I think it would be ideal for performance reasons if widgets
 were only registered if they are active for the current context, i.e.
 after `sidebars_widgets` has been filtered or when `dynamic_sidebar` is
 called. I'm working on a site that has hundreds of widgets, maybe
 thousands when factoring in inactive widgets, and yet only a dozen are
 actually used on a given page.

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


More information about the wp-trac mailing list