[wp-trac] [WordPress Trac] #31675: register_sidebar() without `id` parameter should be _doing_it_wrong()

WordPress Trac noreply at wordpress.org
Tue Apr 7 13:26:51 UTC 2015


#31675: register_sidebar() without `id` parameter should be _doing_it_wrong()
-------------------------+--------------------------
 Reporter:  markjaquith  |       Owner:  markjaquith
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.2
Component:  Widgets      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------

Comment (by miqrogroove):

 Let's revert [31850] for 4.2 and start updating the args and codex to
 indicate that the register_sidebar args are no longer optional.

 From an API point of view, you won't be able to force anyone to do this
 unless you add a new arg to the function.  The `id` would become
 deprecated, and its replacement such as `id2` could inherit the `id` value
 if set.  If `id` and `id2` are both not set, then it would be possible to
 notify the developer to add the `id2` value only.  When added, the data
 are not lost because the `id` value is unchanged.

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


More information about the wp-trac mailing list