X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..607b7e02d77e7326161e8ec15639052d2040f745:/wp-admin/includes/meta-boxes.php diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 1627b1f5..89e17671 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -13,7 +13,7 @@ * @param array $args { * Array of arguments for building the post submit meta box. * - * @type string $id Meta box ID. + * @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. @@ -170,7 +170,7 @@ echo esc_html( $visibility_trans ); ?> ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date @@ -190,20 +190,9 @@ if ( 0 != $post->ID ) { $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); } -if ( ! empty( $args['args']['revisions_count'] ) ) : - $revisions_to_keep = wp_revisions_to_keep( $post ); -?> +if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
- 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) { - echo ''; - printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '+' ); - echo ''; - } else { - printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); - } -?> + ' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); ?>
%1$s'); $date = date_i18n( $datef, strtotime( $post->post_date ) ); @@ -334,7 +323,7 @@ function attachment_submit_meta_box( $post ) { ID ) ) if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { - echo "" . __( 'Trash' ) . ""; + echo "" . _x( 'Trash', 'verb' ) . ""; } else { $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; echo "" . __( 'Delete Permanently' ) . ""; @@ -364,7 +353,7 @@ function attachment_submit_meta_box( $post ) { * @param array $box { * Post formats meta box arguments. * - * @type string $id Meta box ID. + * @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. @@ -405,7 +394,7 @@ function post_format_meta_box( $post, $box ) { * @param array $box { * Tags meta box arguments. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args { @@ -466,7 +455,7 @@ function post_tags_meta_box( $post, $box ) { * @param array $box { * Categories meta box arguments. * - * @type string $id Meta box ID. + * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $callback Meta box display callback. * @type array $args { @@ -533,7 +522,7 @@ function post_categories_meta_box( $post, $box ) { ); /** - * Filter the arguments for the taxonomy parent dropdown on the Post Edit page. + * Filters the arguments for the taxonomy parent dropdown on the Post Edit page. * * @since 4.4.0 * @@ -580,7 +569,13 @@ function post_categories_meta_box( $post, $box ) { function post_excerpt_meta_box($post) { ?> -

Learn more about manual excerpts.'); ?>

+

Learn more about manual excerpts.' ), + __( 'https://codex.wordpress.org/Excerpt' ) + ); +?>

to_ping) ) .'" />'; + $form_trackback = 'to_ping ) ) . '" aria-describedby="trackback-url-desc" />'; if ('' != $post->pinged) { $pings = '

'. __('Already pinged:') . '