[wp-trac] [WordPress Trac] #50347: is_active_sidebar() documentation is terrible

WordPress Trac noreply at wordpress.org
Tue Jun 9 13:16:27 UTC 2020


#50347: is_active_sidebar() documentation is terrible
-------------------------+-----------------------------
 Reporter:  SUM1         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  docs         |
-------------------------+-----------------------------
 The DocBlock for is_active_sidebar() in wp-includes/widgets.php is
 terrible, and I spent several hours wondering why mine returned true
 constantly, even when the sidebar wasn't loaded on the page.

 Updated the documentation accordingly, to specify that it returns true if
 the sidebar contains widgets.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50347>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list