Changeset 32206
- Timestamp:
- 04/20/2015 01:43:56 PM (10 years ago)
- Location:
- branches/3.7/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-admin/includes/class-wp-comments-list-table.php
r25526 r32206 494 494 if ( current_user_can( 'edit_post', $post->ID ) ) { 495 495 $post_link = "<a href='" . get_edit_post_link( $post->ID ) . "'>"; 496 $post_link .= get_the_title( $post->ID) . '</a>';496 $post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>'; 497 497 } else { 498 $post_link = get_the_title( $post->ID);498 $post_link = esc_html( get_the_title( $post->ID ) ); 499 499 } 500 500 -
branches/3.7/src/wp-admin/includes/dashboard.php
r25868 r32206 659 659 660 660 $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); 661 $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));661 $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); 662 662 $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 663 663 $comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>'; -
branches/3.7/src/wp-admin/includes/template.php
r25695 r32206 1374 1374 if ( empty( $title ) ) 1375 1375 $title = __( '(no title)' ); 1376 return $title;1376 return esc_html( $title ); 1377 1377 } 1378 1378 -
branches/3.7/src/wp-admin/js/nav-menu.js
r25708 r32206 445 445 var thisLink = menuItem.find( '.menus-move-left' ), 446 446 thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft ); 447 thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ). html( thisLinkText ).css( 'display', 'inline' );447 thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' ); 448 448 } 449 449 … … 452 452 var thisLink = menuItem.find( '.menus-move-right' ), 453 453 thisLinkText = menus.under.replace( '%s', prevItemNameRight ); 454 thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ). html( thisLinkText ).css( 'display', 'inline' );454 thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' ); 455 455 } 456 456 } … … 474 474 } 475 475 476 $this.prop('title', title). html( title );476 $this.prop('title', title).text( title ); 477 477 }); 478 478 },
Note: See TracChangeset
for help on using the changeset viewer.