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:') . '
';
$already_pinged = explode("\n", trim($post->pinged));
@@ -603,8 +599,18 @@ function post_trackback_meta_box($post) {
}
?>
-
()
-pingbacks, no other action necessary.'); ?>
+
+
+
+
+
+pingbacks, no other action necessary.' ),
+ __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' )
+ );
+?>
$value ) {
list_meta( $metadata );
meta_form( $post ); ?>
-use in your theme.'); ?>
+use in your theme.' ),
+ __( 'https://codex.wordpress.org/Using_Custom_Fields' )
+ );
+?>
-
+
'authors',
'name' => 'post_author_override',
'selected' => empty($post->ID) ? $user_ID : $post->post_author,
- 'include_selected' => true
+ 'include_selected' => true,
+ 'show' => 'display_name_with_login',
) );
}
@@ -780,7 +798,7 @@ function page_attributes_meta_box($post) {
);
/**
- * Filter the arguments used to generate a Pages drop-down element.
+ * Filters the arguments used to generate a Pages drop-down element.
*
* @since 3.3.0
*
@@ -817,7 +835,7 @@ function page_attributes_meta_box($post) {
post_type && get_current_screen()->get_help_tabs() ) { ?>
-
+
link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
$rels = preg_split('/\s+/', $link_rel);
@@ -1173,6 +1191,8 @@ function link_advanced_meta_box($link) {
* Display post thumbnail meta box.
*
* @since 2.9.0
+ *
+ * @param WP_Post $post A post object.
*/
function post_thumbnail_meta_box( $post ) {
$thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
@@ -1184,7 +1204,7 @@ function post_thumbnail_meta_box( $post ) {
*
* @since 3.9.0
*
- * @param WP_Post $post
+ * @param WP_Post $post A post object.
*/
function attachment_id3_data_meta_box( $post ) {
$meta = array();