diff --git a/admin/PostEditSubmitMetabox.php b/admin/PostEditSubmitMetabox.php deleted file mode 100644 index f3908c92..00000000 --- a/admin/PostEditSubmitMetabox.php +++ /dev/null @@ -1,422 +0,0 @@ -post_type); - $post_status = $post->post_status; - - if ('auto-draft' == $post_status) - $post_status = 'draft'; - - if (!$post_status_obj = get_post_status_object($post_status)) { - $post_status_obj = get_post_status_object('draft'); - } - - // Don't exclude the current status, regardless of other arguments - $_args = ['include_status' => $post_status_obj->name]; - - $post_status_obj = get_post_status_object($post->post_status); - - $moderation_statuses = array($post->post_status => $post_status_obj); - - $can_publish = current_user_can($type_obj->cap->publish_posts); - - $_args = compact('type_obj', 'post_status_obj', 'can_publish', 'moderation_statuses'); - $_args = array_merge($args, $_args); // in case args passed into metabox are needed within static calls in the future - ?> -