From a2bf4db52b8d82aeb75b48fa126c3c13c8d6b7b1 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@11312 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 6c1baec17e..a700fe21c0 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 642d74bd8b..0fed5646ac 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 3d6a5b61dd..1eeca07fd6 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 5e85f26928..0015bd0d26 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 f3a60f0ba3..a140447cd3 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 d0bb7205bb..da71c80dbd 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 7ba4326dc0..df3113be04 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 40b973dc49..3a17fbf9b2 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 d13a7c95a6..5e013d8845 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 d7f4e08866..8f5b63cec8 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 88f4b5185e..29f86cfb2d 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 3197b2d850..405294ea61 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 f7b0cb4044..36ff1fec37 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 4b64748a52..f5d7912d6c 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 db39f9f628..34ba931272 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 510b48d5bc..144be100f6 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 4d2ffcc0bf..8573768a00 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 97f43f30a3..3786376848 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 2bb4030e28..c77de00431 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 b14497979b..35ac1c1687 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 f850928196..291ac41e49 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 8e88cb2f63..63cc3f3331 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 05f1712b03..e1783a0cc2 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 3c73309025..cf348746d8 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 ffc5beaf73..a3b8df9165 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 f1f2e4efac..7e9e84eb3d 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 ea4e41336d..a89560a771 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -119,7 +119,7 @@ function get_search_form() { return; $form = ' -
+