110
110
wp_die( __( 'Unknown post type.' ) );
112
112
if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) {
116
116
if ( ! current_user_can( 'edit_post', $post_id ) )
119
119
if ( 'trash' == $post->post_status )
120
120
wp_die( __( 'You can’t edit this item because it is in the Trash. Please restore it and try again.' ) );