[wp-trac] [WordPress Trac] #31024: Add a new hook to the first <option>-element of the archive widget dropdown

WordPress Trac noreply at wordpress.org
Thu Jan 15 17:09:10 UTC 2015


#31024: Add a new hook to the first <option>-element of the archive widget dropdown
---------------------------+-----------------------
 Reporter:  floriansimeth  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.2
Component:  Widgets        |     Version:  4.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  template
---------------------------+-----------------------
Changes (by SergeyBiryukov):

 * milestone:  Future Release => 4.2


Comment:

 Replying to [ticket:31024 floriansimeth]:
 > The problem is that if I hook into the
 [[https://developer.wordpress.org/reference/hooks/widget_archives_dropdown_args/|widget_archives_dropdown_args]]
 and change the argument {{{type}}} from {{{monthly}}} to {{{yearly}}} the
 script would always output "Select Month" instead of "Select Year".

 Instead of introducing a new filter, can we set the label contextually
 based on the passed `type` value?

 See [attachment:31024.patch].

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


More information about the wp-trac mailing list