Changeset 25030 for trunk/src/wp-admin/edit-form-advanced.php
- Timestamp:
- 08/15/2013 08:08:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r24955 r25030 369 369 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : ''; 370 370 $shortlink = wp_get_shortlink($post->ID, 'post'); 371 if ( !empty( $shortlink) )371 if ( !empty( $shortlink ) && $shortlink !== get_permalink( $post->ID ) ) 372 372 $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>'; 373 373
Note: See TracChangeset
for help on using the changeset viewer.