<?php
// -- Post related Meta Boxes/** * Displays post submit form fields. * * @since 2.7.0 * * @global string $action * * @param WP_Post $post Current post object. * @param array $args { * Array of arguments for building the post submit meta box. * * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args Extra meta box arguments. * } */functionpost_submit_meta_box($post,$args=array() ) {global$action;$post_type=$post->post_type;$post_type_object=get_post_type_object($post_type);$can_publish=current_user_can($post_type_object->cap->publish_posts );?><div class="submitbox" id="submitpost"><div id="minor-publishing"><?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?><div style="display:none;"><?php submit_button(__('Save'),'','save'); ?></div><div id="minor-publishing-actions"><div id="save-action"><?php
if('publish'!=$post->post_status &&'future'!=$post->post_status &&'pending'!=$post->post_status ) {$private_style='';if('private'==$post->post_status ) {$private_style='style="display:none"';}?><input <?php echo$private_style; ?> type="submit" name="save" id="save-post" value=