Validation fixes. Props ocean90, xknown. fixes #17364
git-svn-id: http://svn.automattic.com/wordpress/trunk@18114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
46d0e53c7b
commit
15a6a89eb0
File diff suppressed because one or more lines are too long
|
@ -532,7 +532,7 @@ a,
|
||||||
color: #21759b;
|
color: #21759b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu #awaiting-mod,
|
#adminmenu .awaiting-mod,
|
||||||
#adminmenu .update-plugins,
|
#adminmenu .update-plugins,
|
||||||
#sidemenu a .update-plugins,
|
#sidemenu a .update-plugins,
|
||||||
#rightnow .reallynow {
|
#rightnow .reallynow {
|
||||||
|
@ -548,7 +548,7 @@ a,
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li.current a #awaiting-mod,
|
#adminmenu li.current a .awaiting-mod,
|
||||||
#adminmenu li a.wp-has-current-submenu .update-plugins{
|
#adminmenu li a.wp-has-current-submenu .update-plugins{
|
||||||
background-color: #464646;
|
background-color: #464646;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -532,7 +532,7 @@ a,
|
||||||
color: #21759b;
|
color: #21759b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu #awaiting-mod,
|
#adminmenu .awaiting-mod,
|
||||||
#adminmenu .update-plugins,
|
#adminmenu .update-plugins,
|
||||||
#sidemenu a .update-plugins,
|
#sidemenu a .update-plugins,
|
||||||
#rightnow .reallynow {
|
#rightnow .reallynow {
|
||||||
|
@ -548,7 +548,7 @@ a,
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li.current a #awaiting-mod,
|
#adminmenu li.current a .awaiting-mod,
|
||||||
#adminmenu li a.wp-has-current-submenu .update-plugins{
|
#adminmenu li a.wp-has-current-submenu .update-plugins{
|
||||||
background-color: #464646;
|
background-color: #464646;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -506,7 +506,7 @@ form.upgrade .hint {
|
||||||
padding: 6px 1px 0 0;
|
padding: 6px 1px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu #awaiting-mod,
|
#adminmenu .awaiting-mod,
|
||||||
#adminmenu span.update-plugins,
|
#adminmenu span.update-plugins,
|
||||||
#sidemenu li a span.update-plugins {
|
#sidemenu li a span.update-plugins {
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1410,7 +1410,7 @@ body.no-js #adminmenu li.wp-has-current-submenu .wp-submenu {
|
||||||
padding: 6px 0 0 1px;
|
padding: 6px 0 0 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu #awaiting-mod,
|
#adminmenu .awaiting-mod,
|
||||||
#adminmenu span.update-plugins,
|
#adminmenu span.update-plugins,
|
||||||
#sidemenu li a span.update-plugins {
|
#sidemenu li a span.update-plugins {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -1426,7 +1426,7 @@ body.no-js #adminmenu li.wp-has-current-submenu .wp-submenu {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li #awaiting-mod span,
|
#adminmenu li .awaiting-mod span,
|
||||||
#adminmenu li span.update-plugins span,
|
#adminmenu li span.update-plugins span,
|
||||||
#sidemenu li a span.update-plugins span {
|
#sidemenu li a span.update-plugins span {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -137,7 +137,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
/* translators: column name */
|
/* translators: column name */
|
||||||
if ( !$this->detached ) {
|
if ( !$this->detached ) {
|
||||||
$posts_columns['parent'] = _x( 'Attached to', 'column name' );
|
$posts_columns['parent'] = _x( 'Attached to', 'column name' );
|
||||||
$posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></div>';
|
$posts_columns['comments'] = '<span class="vers"><img alt="Comments" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>';
|
||||||
}
|
}
|
||||||
/* translators: column name */
|
/* translators: column name */
|
||||||
$posts_columns['date'] = _x( 'Date', 'column name' );
|
$posts_columns['date'] = _x( 'Date', 'column name' );
|
||||||
|
|
|
@ -112,7 +112,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
$name = translate_user_role( $name );
|
$name = translate_user_role( $name );
|
||||||
/* translators: User role name with count */
|
/* translators: User role name with count */
|
||||||
$name = sprintf( __('%1$s <span class="count">(%2$s)</span>'), $name, $avail_roles[$this_role] );
|
$name = sprintf( __('%1$s <span class="count">(%2$s)</span>'), $name, $avail_roles[$this_role] );
|
||||||
$role_links[$this_role] = "<a href='" . esc_html( add_query_arg( 'role', $this_role, $url ) ) . "'$class>$name</a>";
|
$role_links[$this_role] = "<a href='" . esc_url( add_query_arg( 'role', $this_role, $url ) ) . "'$class>$name</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $role_links;
|
return $role_links;
|
||||||
|
|
|
@ -35,7 +35,7 @@ setCommentsList = function() {
|
||||||
dif = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
|
dif = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
|
||||||
n = n + dif;
|
n = n + dif;
|
||||||
if ( n < 0 ) { n = 0; }
|
if ( n < 0 ) { n = 0; }
|
||||||
a.closest('#awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0');
|
a.closest('.awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0');
|
||||||
updateCount(a, n);
|
updateCount(a, n);
|
||||||
dashboardTotals();
|
dashboardTotals();
|
||||||
});
|
});
|
||||||
|
@ -157,7 +157,7 @@ setCommentsList = function() {
|
||||||
if ( n < 0 )
|
if ( n < 0 )
|
||||||
n = 0;
|
n = 0;
|
||||||
|
|
||||||
a.closest('#awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0');
|
a.closest('.awaiting-mod')[ 0 == n ? 'addClass' : 'removeClass' ]('count-0');
|
||||||
updateCount(a, n);
|
updateCount(a, n);
|
||||||
dashboardTotals();
|
dashboardTotals();
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -111,7 +111,7 @@ $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'me
|
||||||
|
|
||||||
$awaiting_mod = wp_count_comments();
|
$awaiting_mod = wp_count_comments();
|
||||||
$awaiting_mod = $awaiting_mod->moderated;
|
$awaiting_mod = $awaiting_mod->moderated;
|
||||||
$menu[25] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'div' );
|
$menu[25] = array( sprintf( __('Comments %s'), "<span class='awaiting-mod count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'div' );
|
||||||
unset($awaiting_mod);
|
unset($awaiting_mod);
|
||||||
|
|
||||||
$submenu[ 'edit-comments.php' ][0] = array( __('All Comments'), 'edit_posts', 'edit-comments.php' );
|
$submenu[ 'edit-comments.php' ][0] = array( __('All Comments'), 'edit_posts', 'edit-comments.php' );
|
||||||
|
|
Loading…
Reference in New Issue