Changeset 29757
- Timestamp:
- 09/23/2014 02:57:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r29707 r29757 199 199 protected function get_bulk_actions() { 200 200 $actions = array(); 201 202 if ( $this->is_trash ) 201 $post_type_obj = get_post_type_object( $this->screen->post_type ); 202 203 if ( $this->is_trash ) { 203 204 $actions['untrash'] = __( 'Restore' ); 204 else205 } else { 205 206 $actions['edit'] = __( 'Edit' ); 206 207 if ( $this->is_trash || !EMPTY_TRASH_DAYS ) 208 $actions['delete'] = __( 'Delete Permanently' ); 209 else 210 $actions['trash'] = __( 'Move to Trash' ); 207 } 208 209 if ( current_user_can( $post_type_obj->cap->delete_posts ) ) { 210 if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) { 211 $actions['delete'] = __( 'Delete Permanently' ); 212 } else { 213 $actions['trash'] = __( 'Move to Trash' ); 214 } 215 } 211 216 212 217 return $actions;
Note: See TracChangeset
for help on using the changeset viewer.