Changeset 16666 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 12/01/2010 08:21:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r16657 r16666 244 244 <div class="inside"> 245 245 <?php 246 $sample_permalink_html = get_sample_permalink_html($post->ID);246 $sample_permalink_html = ! empty( $post_type_object->publicly_queryable ) ? get_sample_permalink_html($post->ID) : ''; 247 247 $shortlink = wp_get_shortlink($post->ID, 'post'); 248 248 if ( !empty($shortlink) ) 249 249 $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>'; 250 250 251 if ( ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>251 if ( ! empty( $post_type_object->publicly_queryable ) && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 252 252 <div id="edit-slug-box"> 253 253 <?php
Note: See TracChangeset
for help on using the changeset viewer.