Changeset 17989 for trunk/wp-includes/general-template.php
- Timestamp:
- 05/22/2011 10:30:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r17966 r17989 29 29 $templates[] = "header-{$name}.php"; 30 30 31 $templates[] = "header.php";31 $templates[] = 'header.php'; 32 32 33 33 // Backward compat code will be removed in a future release … … 58 58 $templates[] = "footer-{$name}.php"; 59 59 60 $templates[] = "footer.php";60 $templates[] = 'footer.php'; 61 61 62 62 // Backward compat code will be removed in a future release … … 87 87 $templates[] = "sidebar-{$name}.php"; 88 88 89 $templates[] = "sidebar.php";89 $templates[] = 'sidebar.php'; 90 90 91 91 // Backward compat code will be removed in a future release … … 570 570 $my_month = $wp_locale->get_month(substr($m, 4, 2)); 571 571 $my_day = intval(substr($m, 6, 2)); 572 $title = $my_year . ( $my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : "");572 $title = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' ); 573 573 } 574 574 … … 844 844 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n"; 845 845 846 $link_html = apply_filters( "get_archives_link", $link_html );846 $link_html = apply_filters( 'get_archives_link', $link_html ); 847 847 848 848 return $link_html; … … 916 916 917 917 //filters 918 $where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r );919 $join = apply_filters( 'getarchives_join', "", $r);918 $where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish'", $r ); 919 $join = apply_filters( 'getarchives_join', '', $r ); 920 920 921 921 $output = ''; … … 1017 1017 } 1018 1018 } elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) { 1019 $orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC ";1019 $orderby = ('alpha' == $type) ? 'post_title ASC ' : 'post_date DESC '; 1020 1020 $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; 1021 1021 $key = md5($query); … … 1249 1249 1250 1250 if ( in_array($day, $daywithpost) ) // any posts today? 1251 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day) . "\" title=\"" . esc_attr($ak_titles_for_day[$day]) . "\">$day</a>";1251 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . '" title="' . esc_attr( $ak_titles_for_day[ $day ] ) . "\">$day</a>"; 1252 1252 else 1253 1253 $calendar_output .= $day; … … 1998 1998 $link = add_query_arg( $add_args, $link ); 1999 1999 $link .= $add_fragment; 2000 $page_links[] = "<a class='prev page-numbers' href='" . esc_url( apply_filters( 'paginate_links', $link ) ) . "'>$prev_text</a>";2000 $page_links[] = '<a class="prev page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $prev_text . '</a>'; 2001 2001 endif; 2002 2002 for ( $n = 1; $n <= $total; $n++ ) : … … 2015 2015 $dots = true; 2016 2016 elseif ( $dots && !$show_all ) : 2017 $page_links[] = "<span class='page-numbers dots'>...</span>";2017 $page_links[] = '<span class="page-numbers dots">...</span>'; 2018 2018 $dots = false; 2019 2019 endif; … … 2026 2026 $link = add_query_arg( $add_args, $link ); 2027 2027 $link .= $add_fragment; 2028 $page_links[] = "<a class='next page-numbers' href='" . esc_url( apply_filters( 'paginate_links', $link ) ) . "'>$next_text</a>";2028 $page_links[] = '<a class="next page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $next_text . '</a>'; 2029 2029 endif; 2030 2030 switch ( $type ) :
Note: See TracChangeset
for help on using the changeset viewer.