Changeset 25122
- Timestamp:
- 08/26/2013 04:05:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r25030 r25122 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 ) && $shortlink !== get_permalink( $post->ID ) ) 371 $permalink = get_permalink( $post->ID ); 372 if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink !== home_url('?page_id=' . $post->ID) ) 372 373 $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 374
Note: See TracChangeset
for help on using the changeset viewer.