X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..refs/tags/wordpress-4.5:/wp-admin/includes/meta-boxes.php
diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php
index 1627b1f5..bf877c3d 100644
--- a/wp-admin/includes/meta-boxes.php
+++ b/wp-admin/includes/meta-boxes.php
@@ -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'] ) . '' ); ?>
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' ) . "";
@@ -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',
) );
}
@@ -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();