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

" ); add_action('admin_notices', create_function( '', "echo '$message';" ) ); } else { wp_set_post_lock( $post->ID ); wp_enqueue_script('autosave'); } require_once('admin-header.php'); if ( !current_user_can('edit_post', $post_ID) ) die ( __('You are not allowed to edit this post.') ); $post = get_post_to_edit($post_ID); include('edit-form-advanced.php'); _wap_header(); if ( ! current_user_can('edit_posts') ) { ?>

 

post_title; if (0 == $post_ID) { $form_action = 'post'; $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() $form_extra = ""; wp_nonce_field('add-post'); } else { $post_ID = (int) $post_ID; $form_action = 'editpost'; $form_extra = ""; wp_nonce_field('update-post_' . $post_ID); } $form_pingback = ''; $form_prevstatus = ''; $form_trackback = 'to_ping) ) .'" />'; if ('' != $post->pinged) { $pings = '

'. __('Already pinged:') . '

'; } $saveasdraft = ''; if (empty($post->post_status)) $post->post_status = 'draft'; ?> post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>

100)) { $rows = 10; } ?>

post_status, array('publish', 'future') ) || 0 == $post_ID ) { ?>

post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />