Changeset 13786 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 03/21/2010 02:29:11 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/meta-boxes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r13778 r13786 15 15 $post_type = $post->post_type; 16 16 $post_type_object = get_post_type_object($post_type); 17 $type_cap = $post_type_object->capability_type; 18 $can_publish = current_user_can("publish_${type_cap}s"); 17 $can_publish = current_user_can($post_type_object->publish_cap); 19 18 ?> 20 19 <div class="submitbox" id="submitpost"> … … 195 194 <div id="delete-action"> 196 195 <?php 197 if ( current_user_can( "delete_ ${type_cap}", $post->ID ) ) {196 if ( current_user_can( "delete_post", $post->ID ) ) { 198 197 if ( !EMPTY_TRASH_DAYS ) { 199 198 $delete_url = wp_nonce_url( add_query_arg( array('action' => 'delete', 'post' => $post->ID) ), "delete-${post_type}_{$post->ID}" ); … … 408 407 409 408 /** 410 * Displa comments for post table header409 * Display comments for post table header 411 410 * 412 411 * @since 3.0
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)