Changeset 18234 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 06/10/2011 05:02:03 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r18112 r18234 242 242 <div class="inside"> 243 243 <?php 244 $sample_permalink_html = ! empty( $post_type_object->publicly_queryable )? get_sample_permalink_html($post->ID) : '';244 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : ''; 245 245 $shortlink = wp_get_shortlink($post->ID, 'post'); 246 246 if ( !empty($shortlink) ) 247 247 $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>'; 248 248 249 if ( ! empty( $post_type_object->publicly_queryable )&& ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>249 if ( $post_type_object->public && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 250 250 <div id="edit-slug-box"> 251 251 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)