Changeset 37811
- Timestamp:
- 06/21/2016 02:53:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-admin/includes/post.php
r37771 r37811 1314 1314 } 1315 1315 1316 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged. '</span>';1317 $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink) );1316 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . esc_html( $post_name_abridged ) . '</span>'; 1317 $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, esc_html( urldecode( $permalink ) ) ); 1318 1318 $pretty_permalink = str_replace( array( '%pagename%', '%postname%' ), $post_name, urldecode( $permalink ) ); 1319 1319 … … 1322 1322 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1323 1323 $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button button-small hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __( 'Edit' ) . "</a></span>\n"; 1324 $return .= '<span id="editable-post-name-full">' . $post_name. "</span>\n";1324 $return .= '<span id="editable-post-name-full">' . esc_html( $post_name ) . "</span>\n"; 1325 1325 } 1326 1326 … … 1336 1336 } 1337 1337 1338 $return .= "<span id='view-post-btn'><a href='" . $pretty_permalink. "' class='button button-small'>$view_post</a></span>\n";1338 $return .= "<span id='view-post-btn'><a href='" . esc_url( $pretty_permalink ) . "' class='button button-small'>$view_post</a></span>\n"; 1339 1339 } 1340 1340 }
Note: See TracChangeset
for help on using the changeset viewer.