Ticket #19920: edit-form-advanced.php.patch
File edit-form-advanced.php.patch, 1.2 KB (added by , 13 years ago) |
---|
-
edit-form-advanced.php
292 292 </div> 293 293 <div class="inside"> 294 294 <?php 295 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';295 $sample_permalink_html = $post_type_object->publicly_queryable ? get_sample_permalink_html($post->ID) : ''; 296 296 $shortlink = wp_get_shortlink($post->ID, 'post'); 297 297 if ( !empty($shortlink) ) 298 298 $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>'; 299 299 300 if ( $post_type_object->public && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>300 if ( $post_type_object->publicly_queryable && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 301 301 <div id="edit-slug-box"> 302 302 <?php 303 303 if ( ! empty($post->ID) && ! empty($sample_permalink_html) && 'auto-draft' != $post->post_status )