Changeset 13068 for trunk/wp-includes/general-template.php
- Timestamp:
- 02/12/2010 08:14:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r13048 r13068 153 153 else 154 154 $link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>'; 155 155 156 156 if ( $echo ) 157 157 echo apply_filters('loginout', $link); … … 301 301 $link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after; 302 302 } 303 303 304 304 if ( $echo ) 305 305 echo apply_filters('register', $link); … … 1022 1022 $key = md5( $m . $monthnum . $year ); 1023 1023 if ( $cache = wp_cache_get( 'get_calendar', 'calendar' ) ) { 1024 if ( is_array($cache) && isset( $cache[ $key ] ) ) { 1024 if ( is_array($cache) && isset( $cache[ $key ] ) ) { 1025 1025 if ( $echo ) 1026 1026 echo apply_filters( 'get_calendar', $cache[$key] ); 1027 1027 else 1028 return apply_filters( 'get_calendar', $cache[$key] ); 1028 return apply_filters( 'get_calendar', $cache[$key] ); 1029 1029 } 1030 1030 } … … 1088 1088 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 1089 1089 $calendar_caption = _x('%1$s %2$s', 'calendar caption'); 1090 $calendar_output .= '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">1090 $calendar_output = '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '"> 1091 1091 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 1092 1092 <thead> … … 1104 1104 $calendar_output .= "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>"; 1105 1105 } 1106 1106 1107 1107 $calendar_output .= ' 1108 1108 </tr> … … 1207 1207 $calendar_output .= "\n\t</tr>\n\t</tbody>\n\t</table>"; 1208 1208 1209 $cache[ $key ] = $ output;1209 $cache[ $key ] = $calendar_output; 1210 1210 wp_cache_set( 'get_calendar', $cache, 'calendar' ); 1211 1211
Note: See TracChangeset
for help on using the changeset viewer.