Changeset 25675
- Timestamp:
- 10/02/2013 10:50:50 PM (12 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-widgets.php
r25332 r25675 575 575 <?php while ( $r->have_posts() ) : $r->the_post(); ?> 576 576 <li> 577 <a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); elsethe_ID(); ?></a>577 <a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : the_ID(); ?></a> 578 578 <?php if ( $show_date ) : ?> 579 579 <span class="post-date"><?php echo get_the_date(); ?></span> -
trunk/src/wp-includes/general-template.php
r25671 r25675 884 884 function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') { 885 885 $text = wptexturize($text); 886 $title_text = esc_attr($text);887 886 $url = esc_url($url); 888 887 889 888 if ('link' == $format) 890 $link_html = "\t<link rel='archives' title=' $title_text' href='$url' />\n";889 $link_html = "\t<link rel='archives' title='" . esc_attr( $text ) . "' href='$url' />\n"; 891 890 elseif ('option' == $format) 892 891 $link_html = "\t<option value='$url'>$before $text $after</option>\n"; 893 892 elseif ('html' == $format) 894 $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";893 $link_html = "\t<li>$before<a href='$url'>$text</a>$after</li>\n"; 895 894 else // custom 896 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";895 $link_html = "\t$before<a href='$url'>$text</a>$after\n"; 897 896 898 897 $link_html = apply_filters( 'get_archives_link', $link_html );
Note: See TracChangeset
for help on using the changeset viewer.