[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 11:12:02 UTC 2016


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

Comment (by alexvorn2):

 Replying to [comment:1 westonruter]:
 > This is expected. Multi-widget numbers start numbering at 2. This could
 have been done for back-compat reasons.

 It is not the problem that the widget number starts at 2, the problem is
 that the number value is expected be 2 not 3... (in this array:
 http://alexvorn.com/wp-content/uploads/2016/11/why3.png)

 If you take look into the image I added you can see that the callback
 widget array, we have the number value - incorrect and the widget id value
 too.

 I can upload an image with a greater value... ex 6
 http://alexvorn.com/wp-content/uploads/2016/11/oyo.png

 I will reopen this because I think I was not understood about exact
 problem.

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


More information about the wp-trac mailing list