Changeset 32175
- Timestamp:
- 04/20/2015 07:38:29 AM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r31889 r32175 562 562 if ( current_user_can( 'edit_post', $post->ID ) ) { 563 563 $post_link = "<a href='" . get_edit_post_link( $post->ID ) . "'>"; 564 $post_link .= get_the_title( $post->ID) . '</a>';564 $post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>'; 565 565 } else { 566 $post_link = get_the_title( $post->ID);566 $post_link = esc_html( get_the_title( $post->ID ) ); 567 567 } 568 568 -
trunk/src/wp-admin/includes/dashboard.php
r32116 r32175 521 521 $GLOBALS['comment'] =& $comment; 522 522 523 $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));523 $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); 524 524 525 525 if ( current_user_can( 'edit_post', $comment->comment_post_ID ) ) { -
trunk/src/wp-admin/includes/template.php
r31999 r32175 1557 1557 if ( empty( $title ) ) 1558 1558 $title = __( '(no title)' ); 1559 return $title;1559 return esc_html( $title ); 1560 1560 } 1561 1561 -
trunk/src/wp-admin/js/nav-menu.js
r31996 r32175 464 464 thisLink = menuItem.find( '.menus-move-left' ), 465 465 thisLinkText = menus.outFrom.replace( '%s', prevItemNameLeft ); 466 thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ). html( thisLinkText ).css( 'display', 'inline' );466 thisLink.prop( 'title', menus.moveOutFrom.replace( '%s', prevItemNameLeft ) ).text( thisLinkText ).css( 'display', 'inline' ); 467 467 } 468 468 … … 471 471 thisLink = menuItem.find( '.menus-move-right' ), 472 472 thisLinkText = menus.under.replace( '%s', prevItemNameRight ); 473 thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ). html( thisLinkText ).css( 'display', 'inline' );473 thisLink.prop( 'title', menus.moveUnder.replace( '%s', prevItemNameRight ) ).text( thisLinkText ).css( 'display', 'inline' ); 474 474 } 475 475 }
Note: See TracChangeset
for help on using the changeset viewer.