X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..refs/tags/wordpress-4.3:/wp-admin/includes/meta-boxes.php diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index c7307d52..a7a895a1 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -7,6 +7,8 @@ * * @since 2.7.0 * + * @global string $action + * * @param object $post */ function post_submit_meta_box($post, $args = array() ) { @@ -162,15 +164,15 @@ echo esc_html( $visibility_trans ); ?> ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date $stamp = __('Scheduled for: %1$s'); - } else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published + } elseif ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published $stamp = __('Published on: %1$s'); - } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified + } elseif ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified $stamp = __('Publish immediately'); - } else if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified + } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified $stamp = __('Schedule for: %1$s'); } else { // draft, 1 or more saves, date specified $stamp = __('Publish on: %1$s'); @@ -204,7 +206,10 @@ if ( $can_publish ) : // Contributors don't get to choose the date of publish ?> -
+ @@ -248,19 +253,19 @@ if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 if ( $can_publish ) : if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> - 'p' ) ); ?> + - 'p' ) ); ?> + - 'p' ) ); ?> + - + @@ -293,7 +298,7 @@ function attachment_submit_meta_box( $post ) {Learn more about manual excerpts.'); ?>
+Learn more about manual excerpts.'); ?>
()
pingbacks, no other action necessary.'); ?>
+pingbacks, no other action necessary.'); ?>
$value ) { list_meta( $metadata ); meta_form( $post ); ?> -use in your theme.'); ?>
+use in your theme.'); ?>
@@ -755,7 +764,7 @@ function page_attributes_meta_box($post) { * include 'meta-box' or 'quick-edit'. */ $default_title = apply_filters( 'default_page_template_title', __( 'Default Template' ), 'meta-box' ); -?> +?> @@ -763,8 +772,10 @@ $default_title = apply_filters( 'default_page_template_title', __( 'Default Tem } ?>
-
post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?>
+post_type && get_current_screen()->get_help_tabs() ) { ?> + - link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('link_name )); ?>') ) {return true;}return false;"> + link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('link_name )); ?>') ) {return true;}return false;">