post_type; $post_type_object = get_post_type_object( $post_type ); $can_publish = current_user_can( $post_type_object->cap->publish_posts ); ?>
post_status, array( 'publish', 'future', 'private' ), true ) || 0 === $post->ID ) :
if ( $can_publish ) :
if ( ! empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) :
?>
'category' ); if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { $args = array(); } else { $args = $box['args']; } extract( wp_parse_args( $args, $defaults ), EXTR_SKIP ); $tax = get_taxonomy( $taxonomy ); if ( 'category' === $args['taxonomy'] ) : ?>
cap->edit_terms ) ) : ?>
$taxonomy, 'hide_empty' => 0, 'name' => 'new' . $taxonomy . '_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3, ); wp_dropdown_categories( $parent_dropdown_args ); ?>
Learn more about manual excerpts.', 'usces' ), 'https://codex.wordpress.org/Excerpt' ); ?>
to_ping ) ) . '" />'; if ( '' !== $post->pinged ) { $pings = '' . __( 'Already pinged:' ) . '
pingbacks, no other action necessary.', 'usces' ), 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ); ?>
use in your theme.', 'usces' ), 'https://codex.wordpress.org/Using_Custom_Fields' ); ?>
$post->ID, 'number' => 1, 'count' => true, ) ); $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' ); $wp_list_table->display( true ); if ( 1 > $total ) { echo '' . __( 'No comments yet.' ) . '
'; } else { $hidden = get_hidden_meta_boxes( get_current_screen() ); if ( ! in_array( 'commentsdiv', $hidden, true ) ) { ?> 'authors', 'name' => 'post_author_override', 'selected' => empty( $post->ID ) ? $user_ID : $post->post_author, 'include_selected' => true, ); if ( version_compare( $wp_version, '5.9-alpha', '>=' ) ) { $params['capability'] = array( 'edit_posts' ); unset( $params['who'] ); } wp_dropdown_users( $params ); } /** * Display list of revisions. * * @since 2.6.0 * * @param WP_Post $post Current post object. */ function usces_post_revisions_meta_box( $post ) { wp_list_post_revisions(); } // // Page-related Meta Boxes. // /** * Display page attributes form fields. * * @since 2.7.0 * * @param WP_Post $post Current post object. */ function usces_page_attributes_meta_box( $post ) { $post_type_object = get_post_type_object( $post->post_type ); if ( $post_type_object->hierarchical ) : $pages = wp_dropdown_pages( array( 'post_type' => $post->post_type, 'exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __( '(no parent)' ), 'sort_column' => 'menu_order, post_title', 'echo' => 0, ) ); if ( ! empty( $pages ) ) : ?>post_type && 0 !== $page_count ) : $template = ! empty( $post->page_template ) ? $post->page_template : false; ?>
post_type ) : ?>
|
|
|||||||||||||||
XFN.' ); ?>