[wp-trac] [WordPress Trac] #29319: filter dayswithposts in	widget calendar
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Mar 17 11:34:09 UTC 2017
    
    
  
#29319: filter dayswithposts in widget calendar
----------------------------------------+------------------
 Reporter:  kkarpieszuk                 |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  4.8
Component:  Widgets                     |     Version:  3.0
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+------------------
Comment (by BackuPs):
 There is one flaw in @podpirate fix code fix. When there are no posts at
 all the calendar does not show al all.
 This code should be changed to have at least show the calendar with the
 default date
 {{{#!php
 <?php
 if ( ! $gotsome ) {
         $cache[ $key ] = '';
         wp_cache_set( 'theme_get_calendar', $cache, 'theme_calendar' );
         //return;
 }
 }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29319#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list