[wp-trac] [WordPress Trac] #38723: Widget correct number is not displayed into the global $wp_registered_widgets array

WordPress Trac noreply at wordpress.org
Wed Nov 9 22:53:49 UTC 2016


#38723: Widget correct number is not displayed into the global
$wp_registered_widgets array
-------------------------------------+-----------------------
 Reporter:  alexvorn2                |       Owner:
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:
Component:  Widgets                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:  template
-------------------------------------+-----------------------

Comment (by alexvorn2):

 Replying to [comment:4 westonruter]:
 > Is this behavior actually causing a problem for any functionality or is
 it just that the property doesn't have the value you expect? If the
 latter, then just call the `_set( $number )` method before to ensure it
 has the proper number context.

 The problem is that this can create confusion for everybody, as it did for
 me.
 A lot of developers can face the same situation of not knowing why this
 happens.

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


More information about the wp-trac mailing list