From bdf8e8fb3851b4c30f34bb990e4e3f6346f7370e Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 12 May 2009 22:40:56 +0000 Subject: [PATCH] Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791 git-svn-id: http://svn.automattic.com/wordpress/trunk@11312 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 2 +- wp-admin/css/global.css | 4 ++-- wp-admin/edit-comments.php | 2 +- wp-admin/edit-form-advanced.php | 16 ++++++++-------- wp-admin/edit-link-categories.php | 2 +- wp-admin/edit-link-form.php | 18 +++++++++--------- wp-admin/edit-page-form.php | 14 +++++++------- wp-admin/edit-pages.php | 2 +- wp-admin/edit-tags.php | 2 +- wp-admin/edit.php | 2 +- wp-admin/includes/file.php | 2 +- wp-admin/includes/media.php | 4 ++-- wp-admin/includes/plugin-install.php | 4 ++-- wp-admin/includes/template.php | 6 +++--- wp-admin/link-manager.php | 2 +- wp-admin/options-discussion.php | 18 +++++++++--------- wp-admin/options-general.php | 6 +++--- wp-admin/options-media.php | 4 ++-- wp-admin/options-privacy.php | 2 +- wp-admin/options-reading.php | 4 ++-- wp-admin/options-writing.php | 6 +++--- wp-admin/plugins.php | 2 +- wp-admin/press-this.php | 6 +++--- wp-admin/upload.php | 2 +- wp-admin/user-edit.php | 2 +- wp-admin/users.php | 4 ++-- wp-admin/wp-admin.css | 2 +- wp-content/themes/classic/style.css | 2 +- wp-content/themes/default/style.css | 2 +- wp-includes/general-template.php | 2 +- 30 files changed, 73 insertions(+), 73 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 6c1baec17..a700fe21c 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -142,7 +142,7 @@ endif; ?>
diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index 642d74bd8..0fed5646a 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -186,8 +186,8 @@ table { } /* Hide visually but not from screen readers */ -.invisible, -.invisible span { +.screen-reader-text, +.screen-reader-text span { position: absolute; left: -1000em; height: 1px; diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 3d6a5b61d..1eeca07fd 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -175,7 +175,7 @@ unset($status_links); diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 5e85f2692..0015bd0d2 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -282,7 +282,7 @@ function post_tags_meta_box($post, $box) { - + @@ -333,8 +333,8 @@ function post_categories_meta_box($post) {

- - 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> + + 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>

@@ -356,7 +356,7 @@ function post_password_meta_box($post) { ?>

-

+

- +

Learn more about manual excerpts.'); ?>

post_status || 'private' == $post->post_status ) */ function post_slug_meta_box($post) { ?> - + post_status && !current_user_can( 'publish_posts' ) ) ) @@ -515,7 +515,7 @@ function post_author_meta_box($post) { if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; ?> - $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> + $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
- +
diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index f3a60f0ba..a140447cd 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -73,7 +73,7 @@ endif; ?> diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index d0bb7205b..da71c80db 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -138,7 +138,7 @@ function link_categories_meta_box($link) { ?>

+

@@ -192,7 +192,7 @@ function link_xfn_meta_box($link) { - - - - - - - "; - $r .= "\n\t\t"; - $r .= "\n\t\t\n\t"; + $r .= "\n\t\t\n\t"; return $r; } @@ -3159,7 +3159,7 @@ function find_posts_div($found_action = '') { - +
diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 7ba4326dc..df3113be0 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -88,7 +88,7 @@ if ( isset($_GET['deleted']) ) { diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 40b973dc4..3a17fbf9b 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -25,7 +25,7 @@ include('admin-header.php');
+
@@ -200,7 +200,7 @@ function link_xfn_meta_box($link) {
+
+
@@ -221,7 +221,7 @@ function link_xfn_meta_box($link) {
+
@@ -232,7 +232,7 @@ function link_xfn_meta_box($link) {
+
@@ -246,7 +246,7 @@ function link_xfn_meta_box($link) {
+
@@ -269,7 +269,7 @@ function link_xfn_meta_box($link) {
+
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index d13a7c95a..5e013d884 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -261,7 +261,7 @@ function page_password_meta_box($post){ ?>

-

+

- + $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>

- page_template); ?> @@ -291,7 +291,7 @@ function page_attributes_meta_box($post){
-

+

- + 1 ) { if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; ?> - $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> + $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
- +
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index d7f4e0886..8f5b63cec 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -169,7 +169,7 @@ endif; diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 88f4b5185..29f86cfb2 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -158,7 +158,7 @@ endif; ?> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 3197b2d85..405294ea6 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -164,7 +164,7 @@ endif; diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index f7b0cb404..36ff1fec3 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -761,7 +761,7 @@ jQuery(function($){
-
+


diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 4b64748a5..f5d7912d6 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1354,7 +1354,7 @@ SWFUpload.onload = function() {

- +

@@ -1710,7 +1710,7 @@ function media_upload_library_form($errors) { diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index db39f9f62..34ba93127 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -163,7 +163,7 @@ function install_search_form(){ - +

- +
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 510b48d5b..144be100f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2434,7 +2434,7 @@ function _list_meta_row( $entry, &$count ) { $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); $r .= "\n\t
"; + $r .= "\n\t\t"; $r .= "\n\t\t
"; @@ -2442,7 +2442,7 @@ function _list_meta_row( $entry, &$count ) { $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); $r .= "
- - - - - -
+
@@ -43,7 +43,7 @@ include('admin-header.php');
+

+
@@ -114,7 +114,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
+
@@ -124,7 +124,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
+

@@ -135,7 +135,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
+

@@ -154,7 +154,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each - - - - @@ -197,7 +197,7 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists - -
+
__("Don’t show Avatars"), 1 => __('Show Avatars')); foreach ( $yesorno as $key => $value) { @@ -166,7 +166,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
+
__('G — Suitable for all audiences'), 'PG' => __('PG — Possibly offensive, usually for audiences 13 and above'), 'R' => __('R — Intended for adult audiences above 17'), 'X' => __('X — Even more mature than above')); @@ -180,7 +180,7 @@ endforeach;
+

diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 4d2ffcc0b..8573768a0 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -83,7 +83,7 @@ include('./admin-header.php');
-
+
-
+
+
@@ -51,7 +51,7 @@ include('admin-header.php');
+
diff --git a/wp-admin/options-privacy.php b/wp-admin/options-privacy.php index 97f43f30a..378637684 100644 --- a/wp-admin/options-privacy.php +++ b/wp-admin/options-privacy.php @@ -25,7 +25,7 @@ include('./admin-header.php'); - - - diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php index 2bb4030e2..c77de0043 100644 --- a/wp-admin/options-writing.php +++ b/wp-admin/options-writing.php @@ -30,7 +30,7 @@ include('admin-header.php'); -
+

/>

/> diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index b14497979..35ac1c168 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -26,7 +26,7 @@ include('admin-header.php');

+

+


+

@@ -61,7 +61,7 @@ wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category - - -
+

@@ -69,7 +69,7 @@ wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category
+

diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index f85092819..291ac41e4 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -425,7 +425,7 @@ function print_plugin_actions($context) { diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 8e88cb2f6..63cc3f333 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -481,8 +481,8 @@ var ajaxurl = '';

- - 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> + + 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> @@ -496,7 +496,7 @@ var ajaxurl = '';

- +

diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 05f1712b0..e1783a0cc 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -209,7 +209,7 @@ include ('admin-header.php'); 1 ) : ?>
+
@@ -309,7 +309,7 @@ unset($role_links); - + diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 3c7330902..cf348746d 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -2433,7 +2433,7 @@ fieldset { margin: 0 9px 0 0; } -#screen-meta .invisible { +#screen-meta .screen-reader-text { visibility: hidden; } diff --git a/wp-content/themes/classic/style.css b/wp-content/themes/classic/style.css index ffc5beaf7..a3b8df916 100644 --- a/wp-content/themes/classic/style.css +++ b/wp-content/themes/classic/style.css @@ -12,7 +12,7 @@ This is just a basic layout, with only the bare minimum defined. Please tweak this and make it your own. :) */ -.invisible { +.screen-reader-text { position: absolute; left: -1000em; } diff --git a/wp-content/themes/default/style.css b/wp-content/themes/default/style.css index f1f2e4efa..7e9e84eb3 100644 --- a/wp-content/themes/default/style.css +++ b/wp-content/themes/default/style.css @@ -655,7 +655,7 @@ blockquote cite { display: none; } -.invisible { +.screen-reader-text { position: absolute; left: -1000em; } diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index ea4e41336..a89560a77 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -119,7 +119,7 @@ function get_search_form() { return; $form = ' -
+