Changeset 37801
- Timestamp:
- 06/21/2016 02:45:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r37691 r37801 1320 1320 if ( false !== $view_link ) { 1321 1321 $display_link = urldecode( $view_link ); 1322 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $display_link. "</a>\n";1322 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . esc_html( $display_link ) . "</a>\n"; 1323 1323 } else { 1324 1324 $return .= '<span id="sample-permalink">' . $permalink . "</span>\n"; … … 1344 1344 } 1345 1345 1346 $post_name_html = '<span id="editable-post-name">' . $post_name_abridged. '</span>';1347 $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink) );1346 $post_name_html = '<span id="editable-post-name">' . esc_html( $post_name_abridged ) . '</span>'; 1347 $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, esc_html( urldecode( $permalink ) ) ); 1348 1348 1349 1349 $return = '<strong>' . __( 'Permalink:' ) . "</strong>\n"; … … 1351 1351 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1352 1352 $return .= '<span id="edit-slug-buttons"><button type="button" class="edit-slug button button-small hide-if-no-js" aria-label="' . __( 'Edit permalink' ) . '">' . __( 'Edit' ) . "</button></span>\n"; 1353 $return .= '<span id="editable-post-name-full">' . $post_name. "</span>\n";1353 $return .= '<span id="editable-post-name-full">' . esc_html( $post_name ) . "</span>\n"; 1354 1354 } 1355 1355
Note: See TracChangeset
for help on using the changeset viewer.