Ticket #24766: 24766.1.diff
File 24766.1.diff, 2.9 KB (added by , 10 years ago) |
---|
-
wp-includes/link-template.php
726 726 if ( empty( $link ) ) 727 727 $link = __('Edit This'); 728 728 729 $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '" title="' . $link . '">' . $link . '</a>';729 $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '">' . $link . '</a>'; 730 730 $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 731 731 732 732 if ( $echo ) … … 937 937 $link = __('Edit This'); 938 938 939 939 $post_type_obj = get_post_type_object( $post->post_type ); 940 $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( $post_type_obj->labels->edit_item ) . '">' . $link . '</a>';940 $link = '<a class="post-edit-link" href="' . $url . '">' . $link . '</a>'; 941 941 echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; 942 942 } 943 943 … … 1011 1011 if ( null === $link ) 1012 1012 $link = __('Edit This'); 1013 1013 1014 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . esc_attr__( 'Edit comment' ) . '">' . $link . '</a>';1014 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">' . $link . '</a>'; 1015 1015 echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after; 1016 1016 } 1017 1017 … … 1052 1052 if ( empty($link) ) 1053 1053 $link = __('Edit This'); 1054 1054 1055 $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '" title="' . esc_attr__( 'Edit Link' ) . '">' . $link . '</a>';1055 $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '">' . $link . '</a>'; 1056 1056 echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after; 1057 1057 } 1058 1058 -
wp-includes/post-template.php
911 911 $class = ''; 912 912 if ( is_front_page() && !is_paged() ) 913 913 $class = 'class="current_page_item"'; 914 $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';914 $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 915 915 // If the front page is a page, add it to the exclude list 916 916 if (get_option('show_on_front') == 'page') { 917 917 if ( !empty( $list_args['exclude'] ) ) { … … 1192 1192 if ( trim( $link_text ) == '' ) 1193 1193 $link_text = $_post->post_title; 1194 1194 1195 return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon, $text );1195 return apply_filters( 'wp_get_attachment_link', "<a href='$url'>$link_text</a>", $id, $size, $permalink, $icon, $text ); 1196 1196 } 1197 1197 1198 1198 /**