/** * Output the QuickPress dashboard widget. * * @since 3.0.0 * @deprecated 3.2.0 * @deprecated Use nxt_dashboard_quick_press() * @see nxt_dashboard_quick_press() */ function nxt_dashboard_quick_press_output() { _deprecated_function(__FUNCTION__, '3.2', 'nxt_dashboard_quick_press()'); nxt_dashboard_quick_press(); }
if ('post-quickpress-publish' == $action) { $_POST['publish'] = 'publish'; } // tell write_post() to publish if ('post-quickpress-publish' == $action || 'post-quickpress-save' == $action) { $_POST['comment_status'] = get_option('default_comment_status'); $_POST['ping_status'] = get_option('default_ping_status'); $post_id = edit_post(); } else { $post_id = 'postajaxpost' == $action ? edit_post() : write_post(); } if (0 === strpos($action, 'post-quickpress')) { $_POST['post_ID'] = $post_id; // output the quickpress dashboard widget require_once ABSPATH . 'nxt-admin/includes/dashboard.php'; nxt_dashboard_quick_press(); exit; } redirect_post($post_id); exit; break; case 'edit': $editing = true; if (empty($post_id)) { nxt_redirect(admin_url('post.php')); exit; } $p = $post_id; if (empty($post->ID)) { nxt_die(__('You attempted to edit an item that doesn’t exist. Perhaps it was deleted?')); }