Changeset 36853 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 03/05/2016 03:55:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r36659 r36853 1303 1303 } else { 1304 1304 // Allow non-published (private, future) to be viewed at a pretty permalink. 1305 $view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, urldecode( $permalink ));1305 $view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, $permalink ); 1306 1306 } 1307 1307 } … … 1313 1313 1314 1314 if ( false !== $view_link ) { 1315 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $view_link . "</a>\n"; 1315 $display_link = urldecode( $view_link ); 1316 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $display_link . "</a>\n"; 1316 1317 } else { 1317 1318 $return .= '<span id="sample-permalink">' . $permalink . "</span>\n";
Note: See TracChangeset
for help on using the changeset viewer.