From f306793b2ca499241bffc94f499bcaa7f424b238 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 22 Feb 2016 16:22:53 +0000 Subject: [PATCH] Accessibility: Remove the revisions limit warning from the Publish box. After [36053] don't show a warning about something users can't change because there's no control exposed in the UI for that. The Revisions screen is probably a better place to show a more complete information. Fixes #35029. git-svn-id: https://develop.svn.wordpress.org/trunk@36612 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 4 ---- src/wp-admin/includes/meta-boxes.php | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 92eb57ef2e..114c3916f2 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -890,10 +890,6 @@ abbr.required, padding: 6px 10px 8px; } -.misc-pub-revisions .howto { - padding-left: 25px; -} - .misc-pub-filename { word-wrap: break-word; } diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index fea0a0ad80..1dce46f27e 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -190,15 +190,10 @@ 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'] ) ) : ?>
' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); ?> - 0 ) : ?> - -