post_id; $post = $editor->post; $post_type = $editor->post->post_type; $nonce_action = $nonce_action = 'update-post_' . $editor->post_id; $user_ID = isset($editor->current_user) && isset($editor->current_user->ID) ? (int) $editor->current_user->ID : 0; $form_action = 'editpost'; $menu = array(); add_thickbox(); wp_enqueue_media( array( 'post' => $post_ID ) ); require_once( $editor->adminFile('admin-header.php') ); ?> render('topbar.phtml');?>