Changeset 14585 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 05/12/2010 08:45:18 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r14554 r14585 143 143 add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', $post_type, 'normal', 'core'); 144 144 145 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object-> publish_cap) ) )145 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) 146 146 add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', $post_type, 'normal', 'core'); 147 147 … … 222 222 $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>'; 223 223 224 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object-> publish_cap) ) ) { ?>224 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 225 225 <div id="edit-slug-box"> 226 226 <?php
Note: See TracChangeset
for help on using the changeset viewer.