From 48d24f6bf5417c9a9b19f0c3c877083d3b933f6d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 24 Jan 2014 19:05:15 +0000 Subject: [PATCH] Remove all "valign" attributes from tables in wp-admin, props MikeHansenMe, Marventus. Fixes #22712. git-svn-id: https://develop.svn.wordpress.org/trunk@27029 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/comment.php | 2 +- src/wp-admin/custom-background.php | 16 ++++---- src/wp-admin/custom-header.php | 16 ++++---- src/wp-admin/edit-form-comment.php | 6 +-- src/wp-admin/edit-tag-form.php | 8 ++-- .../includes/class-wp-links-list-table.php | 2 +- .../includes/class-wp-media-list-table.php | 2 +- .../includes/class-wp-ms-sites-list-table.php | 10 ++--- src/wp-admin/includes/file.php | 10 ++--- src/wp-admin/includes/media.php | 18 ++++----- src/wp-admin/includes/ms.php | 14 +++---- src/wp-admin/includes/template.php | 4 +- src/wp-admin/my-sites.php | 4 +- src/wp-admin/network/settings.php | 40 +++++++++---------- src/wp-admin/options-discussion.php | 18 ++++----- src/wp-admin/options-general.php | 18 ++++----- src/wp-admin/options-media.php | 10 ++--- src/wp-admin/options-reading.php | 10 ++--- src/wp-admin/options-writing.php | 16 ++++---- 19 files changed, 111 insertions(+), 113 deletions(-) diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index d4d37ee21d..13a793d26e 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -174,7 +174,7 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved - + comment_content; ?> diff --git a/src/wp-admin/custom-background.php b/src/wp-admin/custom-background.php index 4b599f95ef..2c9076b9bd 100644 --- a/src/wp-admin/custom-background.php +++ b/src/wp-admin/custom-background.php @@ -191,7 +191,7 @@ class Custom_Background { - + + + - +
-
@@ -235,7 +235,7 @@ class Custom_Background { -
@@ -247,7 +247,7 @@ class Custom_Background {

@@ -274,7 +274,7 @@ class Custom_Background { - + - + - + - + + +
@@ -302,7 +302,7 @@ class Custom_Background {
-
-


@@ -548,7 +548,7 @@ class Custom_Image_Header { - +default_headers ) ) : ?> - + - + +

@@ -559,7 +559,7 @@ class Custom_Image_Header {
@@ -574,7 +574,7 @@ class Custom_Image_Header {

@@ -585,7 +585,7 @@ class Custom_Image_Header { $default_image = get_theme_support( 'custom-header', 'default-image' ); if ( $default_image && get_header_image() != $default_image ) : ?> -

@@ -602,7 +602,7 @@ class Custom_Image_Header { - + - +

@@ -611,7 +611,7 @@ class Custom_Image_Header {

diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index 55f8df635b..18a0a74ca8 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -28,11 +28,11 @@ if ( !defined('ABSPATH') )

- + - + - +
comment_author_email ) { @@ -43,7 +43,7 @@ if ( !defined('ABSPATH') ) ?>
comment_author_url ) && 'http://' != $comment->comment_author_url ) { diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php index ee8dcda11f..9d5ceb55c1 100644 --- a/src/wp-admin/edit-tag-form.php +++ b/src/wp-admin/edit-tag-form.php @@ -81,13 +81,13 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> - + - + - + - + diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php index 61d8c176b4..98281b0367 100644 --- a/src/wp-admin/includes/class-wp-links-list-table.php +++ b/src/wp-admin/includes/class-wp-links-list-table.php @@ -114,7 +114,7 @@ class WP_Links_List_Table extends WP_List_Table { $edit_link = get_edit_bookmark_link( $link ); ?> - > + > get_column_info(); diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index 4d0bfe4612..18058c849f 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -209,7 +209,7 @@ class WP_Media_List_Table extends WP_List_Table { $post_owner = ( get_current_user_id() == $post->post_author ) ? 'self' : 'other'; $att_title = _draft_or_post_title(); ?> - post_status ); ?>' valign="top"> + post_status ); ?>'> get_column_info(); diff --git a/src/wp-admin/includes/class-wp-ms-sites-list-table.php b/src/wp-admin/includes/class-wp-ms-sites-list-table.php index f9b33e424f..fcabfd777c 100644 --- a/src/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -233,7 +233,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { break; case 'id':?> - "; + echo "

0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?> @@ -113,7 +113,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>

+ "; if ( 'list' == $mode ) $date = 'Y/m/d'; else @@ -316,7 +316,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { "; + echo ""; if ( $blog['registered'] == '0000-00-00 00:00:00' ) echo '—'; else @@ -326,7 +326,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { "; + echo ""; $blogusers = get_users( array( 'blog_id' => $blog['blog_id'], 'number' => 6) ); if ( is_array( $blogusers ) ) { $blogusers_warning = ''; @@ -350,7 +350,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { case 'plugins': ?> "; + echo ""; /** * Fires inside the auxiliary 'Actions' column of the Sites list table. * diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 9d2cae9eb9..25acd6f9ea 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -1052,24 +1052,24 @@ jQuery(function($){ _e('If you do not remember your credentials, you should contact your web host.'); ?>

- + - + - + - + - +
" size="40" />
size="40" />
size="40" />

@@ -1080,7 +1080,7 @@ jQuery(function($){
diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 739fbd1bae..e3ffe9e5e8 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -1377,7 +1377,7 @@ function get_media_item( $attachment_id, $args = null ) { $display_title - + \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t"; - $item .= "\t\t\t\n\t\t\t - @@ -2454,7 +2454,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) {

   

$image_edit_button

@@ -1462,7 +1462,7 @@ function get_media_item( $attachment_id, $args = null ) { $class = $id; $class .= $field['required'] ? ' form-required' : ''; - $item .= "\t\t
"; + $item .= "\t\t
"; if ( !empty( $field[ $field['input'] ] ) ) $item .= $field[ $field['input'] ]; elseif ( $field['input'] == 'textarea' ) { @@ -1609,7 +1609,7 @@ function get_compat_media_markup( $attachment_id, $args = null ) { $class .= $field['required'] ? ' form-required' : ''; $item .= "\t\t
"; + $item .= "\t\t\t"; $item .= ""; if ( !empty( $field[ $field['input'] ] ) ) @@ -2429,7 +2429,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) { if ( ! apply_filters( 'disable_captions', '' ) ) { $caption = '
+
- @@ -2462,7 +2462,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) { - @@ -2472,7 +2472,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) { - ' . $caption . ' - + - '; + echo ''; if ( !empty($field['args']['label_for']) ) echo ''; else @@ -2021,4 +2021,4 @@ function wp_star_rating( $args = array() ) { echo str_repeat( '
', $half_stars ); echo str_repeat( '
', $empty_stars); echo ''; -} \ No newline at end of file +} diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php index f882964afc..2b97eef37a 100644 --- a/src/wp-admin/my-sites.php +++ b/src/wp-admin/my-sites.php @@ -91,7 +91,7 @@ else : */ $settings_html = apply_filters( 'myblogs_options', '', 'global' ); if ( $settings_html != '' ) { - echo ''; } @@ -116,7 +116,7 @@ else : $i = 0; foreach ( $row as $user_blog ) { $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; - echo "
+ *
+ *

' . __('Link text, e.g. “Ransom Demands (PDF)”') . '

+ @@ -2480,7 +2480,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) {

@@ -2494,7 +2494,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) {
+
diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index e376a1ed13..f048417186 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -536,15 +536,13 @@ function _access_denied_splash() { $output .= ''; foreach ( $blogs as $blog ) { - $output .= ""; - $output .= ""; - $output .= ""; - $output .= ""; + $output .= ''; + $output .= ""; + $output .= ''; + $output .= ''; } + $output .= '
"; - $output .= "{$blog->blogname}"; - $output .= ""; - $output .= "" . __( 'Visit Dashboard' ) . " | " . __( 'View Site' ) . "" ; - $output .= "
{$blog->blogname}' . __( 'Visit Dashboard' ) . ' | ' . + '' . __( 'View Site' ) . '
'; wp_die( $output ); diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index f17c285e8f..6ada2ba555 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1167,7 +1167,7 @@ function do_settings_fields($page, $section) { return; foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { - echo '

' . __( 'Global Settings' ) . '

'; + echo '

' . __( 'Global Settings' ) . '

'; echo $settings_html; echo '
"; + echo ""; echo "

{$user_blog->blogname}

"; /** * Filter the row links displayed for each site on the My Sites screen. diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php index 8fe2ad9078..2b3b9a6cf3 100644 --- a/src/wp-admin/network/settings.php +++ b/src/wp-admin/network/settings.php @@ -89,14 +89,14 @@ if ( isset( $_GET['updated'] ) ) {

- + - +
@@ -108,7 +108,7 @@ if ( isset( $_GET['updated'] ) ) {

- + - + - + - + - + - +
" size="45" /> @@ -156,7 +156,7 @@ if ( isset( $_GET['updated'] ) ) {