X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..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 3e2c9de6..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 ) {
%1$s'); $date = date_i18n( $datef, strtotime( $post->post_date ) ); ?> @@ -330,7 +335,7 @@ function attachment_submit_meta_box( $post ) {
- +
@@ -368,10 +373,13 @@ function post_format_meta_box( $post, $box ) { $post_formats[0][] = $post_format; ?>
- /> - -
/> -
+
+ + /> + +
/> + +
-
labels->add_new_item; ?>

@@ -523,7 +530,7 @@ function post_categories_meta_box( $post, $box ) { function post_excerpt_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.'); ?>


- + post_type && 0 != count( get_page_templates( $post ) ) ) { + if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) { $template = !empty($post->page_template) ? $post->page_template : false; ?>

-

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;">
link_id) ) { ?> - + - +
@@ -900,6 +923,8 @@ function link_target_meta_box($link) { ?> * * @since 1.0.1 * + * @global object $link + * * @param string $class * @param string $value * @param mixed $deprecated Never used.