Changeset 34690 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 09/29/2015 09:41:14 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r34670 r34690 1297 1297 $preview_target = " target='wp-preview-{$post->ID}'"; 1298 1298 } else { 1299 if ( 'publish' === $post->post_status ) {1299 if ( 'publish' === $post->post_status || 'attachment' === $post->post_type ) { 1300 1300 $view_link = get_permalink( $post ); 1301 1301 } else { … … 1311 1311 1312 1312 if ( false !== $view_link ) { 1313 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $ permalink . "</a>\n";1313 $return .= '<a id="sample-permalink" href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $view_link . "</a>\n"; 1314 1314 } else { 1315 1315 $return .= '<span id="sample-permalink">' . $permalink . "</span>\n";
Note: See TracChangeset
for help on using the changeset viewer.