ID) ) { _wap_die( __("You attempted to edit a post that doesn't exist. Perhaps it was deleted?") ); } if ( 'page' == $post->post_type ) { _wap_die( __("Post type is error.") ); } wp_enqueue_script('post'); if ( user_can_richedit() ) wp_enqueue_script('editor'); wp_enqueue_script('thickbox'); wp_enqueue_script('media-upload'); if ( $last = wp_check_post_lock( $post->ID ) ) { $last_user = get_userdata( $last ); $last_user_name = $last_user ? $last_user->display_name : __('Somebody'); $message = sprintf( __( 'Warning: %s is currently editing this post' ), wp_specialchars( $last_user_name ) ); $message = str_replace( "'", "\'", "
$message