[wp-trac] [WordPress Trac] #15202: get_calendar() lacks filters on it's database queries

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 18 17:34:51 UTC 2011


#15202: get_calendar() lacks filters on it's database queries
--------------------------+-----------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Template      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------
Changes (by Chouby):

 * cc: Chouby (added)


Comment:

 I would be interested by this filter too. Today I am obliged to use a
 quite ugly workaround: copy paste the get_calendar function, modify a few
 lines to modify the sql queries and finally use the get_calendar filter to
 output the modified calendar. Since the get_calendar filter is at the end
 of the function, most of the code (and sql queries) is executed 2 times...
 Not very efficient.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15202#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list