Make WordPress Core

Changeset 14183


Ignore:
Timestamp:
04/21/2010 09:35:39 PM (16 years ago)
Author:
ryan
Message:

Return after echoing cached calendar. Fixes double output. Props mtdewvirus. fixes #13077

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r14075 r14183  
    10621062        if ( $cache = wp_cache_get( 'get_calendar', 'calendar' ) ) {
    10631063                if ( is_array($cache) && isset( $cache[ $key ] ) ) {
    1064                         if ( $echo )
     1064                        if ( $echo ) {
    10651065                                echo apply_filters( 'get_calendar',  $cache[$key] );
    1066                         else
     1066                                return;
     1067                        } else {
    10671068                                return apply_filters( 'get_calendar',  $cache[$key] );
     1069                        }
    10681070                }
    10691071        }
Note: See TracChangeset for help on using the changeset viewer.