diff --git a/wp-admin/css/customize-controls-rtl.css b/wp-admin/css/customize-controls-rtl.css
index 1852fd91a4..296f535cd8 100644
--- a/wp-admin/css/customize-controls-rtl.css
+++ b/wp-admin/css/customize-controls-rtl.css
@@ -10,7 +10,7 @@
float: left;
}
-#customize-header-actions img {
+#customize-header-actions .spinner {
float: left;
margin-right: 0;
margin-left: 4px;
diff --git a/wp-admin/css/customize-controls.css b/wp-admin/css/customize-controls.css
index 68429914ef..6317d9e78d 100644
--- a/wp-admin/css/customize-controls.css
+++ b/wp-admin/css/customize-controls.css
@@ -160,14 +160,12 @@ body {
margin-top: 10px;
}
-#customize-header-actions img {
- display: none;
- float: right;
- margin-top: 13px;
+#customize-header-actions .spinner {
+ margin-top: 16px;
margin-right: 4px;
}
-.saving #customize-header-actions img {
+.saving #customize-header-actions .spinner {
display: block;
}
diff --git a/wp-admin/css/wp-admin-rtl.css b/wp-admin/css/wp-admin-rtl.css
index 578a521c46..ae5fe21968 100644
--- a/wp-admin/css/wp-admin-rtl.css
+++ b/wp-admin/css/wp-admin-rtl.css
@@ -840,7 +840,7 @@ th.sorted a span {
font-style: normal;
}
-#commentsdiv img.waiting {
+#commentsdiv .spinner {
padding-left: 0;
padding-right: 5px;
}
@@ -1084,8 +1084,8 @@ form.upgrade .hint {
/* reply to comments */
-#replysubmit img.waiting,
-.inline-edit-save img.waiting {
+#replysubmit .spinner,
+.inline-edit-save .spinner {
float: left;
}
@@ -1503,12 +1503,6 @@ table .column-rating {
* html #template div {margin-left: 0;}
-.list-ajax-loading {
- float: left;
- margin-right: 0;
- margin-left: 9px;
-}
-
/* - Used - but could/should be deprecated with a CSS reset
------------------------------------------------------------------------------*/
/* No RTL for now, this space intentionally left blank */
@@ -1853,7 +1847,7 @@ a.rsswidget,
float: left;
}
-#dashboard-widgets #dashboard_quick_press form p.submit img.waiting {
+#dashboard-widgets #dashboard_quick_press form p.submit .spinner {
margin: 4px 0 0 6px;
}
diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css
index 6f38e708d7..7c6c2fe404 100644
--- a/wp-admin/css/wp-admin.css
+++ b/wp-admin/css/wp-admin.css
@@ -968,6 +968,10 @@ ul#add-to-blog-users {
line-height: 23px;
}
+#publishing-action .spinner {
+ float: left;
+}
+
#misc-publishing-actions {
padding: 6px 0 0;
}
@@ -1099,7 +1103,6 @@ form.upgrade .hint {
}
.ajax-feedback {
- visibility: hidden;
vertical-align: bottom;
}
@@ -2398,7 +2401,7 @@ table.fixed {
border-bottom: 0 none;
}
-#commentsdiv img.waiting {
+#commentsdiv .spinner {
padding-left: 5px;
}
@@ -2838,6 +2841,16 @@ table .inline-edit-row fieldset ul.cat-hover {
11.0 - Write/Edit Post Screen
------------------------------------------------------------------------------*/
+#show-comments {
+ overflow: hidden;
+}
+
+#save-action .spinner,
+#show-comments a,
+#show-comments .spinner {
+ float: left;
+}
+
#titlediv {
position: relative;
margin-bottom: 10px;
@@ -2872,6 +2885,12 @@ table .inline-edit-row fieldset ul.cat-hover {
padding: 8px 10px;
}
+#wp-fullscreen-save .fs-saved {
+ color: #999;
+ float: right;
+ margin-top: 4px;
+}
+
#wp-fullscreen-title-prompt-text {
padding: 11px;
}
@@ -2922,10 +2941,6 @@ input#link_url {
vertical-align: middle;
}
-#wpcontent .ajax-loading {
- visibility: hidden;
-}
-
.submitbox .submit {
text-align: left;
padding: 12px 10px 10px;
@@ -3267,7 +3282,7 @@ td.plugin-title p {
width: auto;
}
-#postcustomstuff #newmetaleft a {
+#postcustomstuff #newmetaleft a {
display: inline-block;
margin: 0 8px 8px;
text-decoration: none;
@@ -3999,7 +4014,8 @@ td.imgedit-settings input {
.imgedit-wait {
position: absolute;
top: 0;
- background: #FFFFFF url(../images/wpspin_light.gif) no-repeat scroll 22px 10px;
+ background: #fff url(../images/wpspin_light.gif) no-repeat scroll 22px 10px;
+ background-size: 16px 16px;
opacity: 0.7;
filter: alpha(opacity=70);
width: 100%;
@@ -4007,15 +4023,47 @@ td.imgedit-settings input {
display: none;
}
+.spinner {
+ background: url(../images/wpspin_light.gif) no-repeat;
+ background-size: 16px 16px;
+ display: none;
+ float: right;
+ opacity: 0.7;
+ filter: alpha(opacity=70);
+ width: 16px;
+ height: 16px;
+ margin: 5px 5px 0;
+}
+
+@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
+ .spinner,
+ .imgedit-wait,
+ .customize-loading #customize-container {
+ background-image: url(../images/wpspin_light-2x.gif);
+ }
+}
+
+.no-float {
+ float: none;
+}
+
.media-disabled,
.imgedit-settings .disabled {
color: grey;
}
-.imgedit-wait-spin {
+.wp_attachment_image, .A1B1 {
+ overflow: hidden;
+}
+
+.wp_attachment_image .button, .A1B1 .button {
+ float: left;
+}
+
+.wp_attachment_image .spinner, .A1B1 .spinner {
+ float: left;
padding: 0 4px 4px;
vertical-align: bottom;
- visibility: hidden;
}
.imgedit-menu {
@@ -4301,8 +4349,8 @@ span.imgedit-scale-warn {
text-align: center;
}
-#replysubmit img.waiting,
-.inline-edit-save img.waiting {
+#replysubmit .spinner,
+.inline-edit-save .spinner {
padding: 4px 10px 0;
vertical-align: top;
float: right;
@@ -4927,6 +4975,10 @@ h2 .nav-tab {
vertical-align: middle;
}
+.options-general-php .spinner {
+ float: none;
+ margin: -3px 3px;
+}
/*------------------------------------------------------------------------------
21.0 - Admin Footer
@@ -5481,6 +5533,7 @@ body.full-overlay-active {
.customize-loading #customize-container {
background: #fff url("../images/wpspin_light.gif") no-repeat fixed center center;
+ background-size: 16px 16px;
}
#customize-container iframe,
@@ -5785,12 +5838,6 @@ td.media-icon img {
max-height: 60px;
}
-.list-ajax-loading {
- float: right;
- margin-right: 9px;
- margin-top: -1px;
-}
-
.tablenav .list-ajax-loading {
margin-top: 7px;
}
@@ -6006,7 +6053,7 @@ h3:hover .edit-box {
color: red;
}
-#dashboard_right_now .waiting {
+#dashboard_right_now .spinner {
color: #e66f00;
}
@@ -6164,7 +6211,7 @@ h3:hover .edit-box {
float: right;
}
-#dashboard-widgets #dashboard_quick_press form p.submit img.waiting {
+#dashboard-widgets #dashboard_quick_press form p.submit .spinner {
vertical-align: middle;
visibility: hidden;
margin: 4px 6px 0 0;
@@ -6725,6 +6772,10 @@ a.rsswidget {
margin-top: 5px;
}
+.button.right, .button-secondary.right, .button-primary.right {
+ float: right;
+}
+
/* Button Secondary Actions */
.list-controls {
float: left;
@@ -6735,7 +6786,7 @@ a.rsswidget {
float: right;
}
-.postbox img.waiting {
+.postbox .spinner {
display: none;
vertical-align: middle;
}
@@ -7495,6 +7546,16 @@ h3.tb {
#waiting {
margin-top: 10px;
+ overflow: hidden;
+}
+
+#waiting span {
+ float: right;
+ margin: 0 0 0 5px;
+}
+
+#waiting .spinner {
+ display: block;
}
#extra-fields .postbox {
@@ -7569,7 +7630,7 @@ h3.tb {
}
/* Submit */
-#saving {
+.press-this #publishing-actions .spinner {
display: inline;
vertical-align: middle;
}
@@ -8014,6 +8075,11 @@ a.widget-control-edit {
padding-top: 2px;
}
+.sidebar-name .spinner {
+ float: none;
+ margin: 0 3px -3px;
+}
+
.sidebar-name-arrow {
float: right;
height: 29px;
@@ -8203,3 +8269,8 @@ a.widget-control-edit {
.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap {
margin-left: 8em;
}
+
+.update-php .spinner {
+ float: none;
+ margin: -4px 0;
+}
\ No newline at end of file
diff --git a/wp-admin/customize.php b/wp-admin/customize.php
index 09c5b6789b..1ac1989196 100644
--- a/wp-admin/customize.php
+++ b/wp-admin/customize.php
@@ -72,7 +72,7 @@ do_action( 'customize_controls_print_scripts' );
$save_text = $wp_customize->is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' );
submit_button( $save_text, 'primary', 'save', false );
?>
-
+
diff --git a/wp-admin/images/wpspin_light-2x.gif b/wp-admin/images/wpspin_light-2x.gif
new file mode 100644
index 0000000000..fe2d5c0fcb
Binary files /dev/null and b/wp-admin/images/wpspin_light-2x.gif differ
diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php
index 3de77c1d80..da324ee701 100644
--- a/wp-admin/includes/class-wp-plugin-install-list-table.php
+++ b/wp-admin/includes/class-wp-plugin-install-list-table.php
@@ -115,13 +115,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
pagination( $which ); ?>
-
- + 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
@@ -779,8 +779,8 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) { @@ -923,7 +923,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) { ?>- + 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
@@ -955,8 +955,8 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) { diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 92bfc2deb1..2e32a6ffa1 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -360,7 +360,7 @@ function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', - +' + navMenuL10n.noResultsFound + '
' ); - $('img.waiting', panel).hide(); + $('.spinner', panel).hide(); return; } @@ -932,7 +932,7 @@ var wpNavMenu; }); $('.categorychecklist', panel).html( $items ); - $('img.waiting', panel).hide(); + $('.spinner', panel).hide(); }, removeMenuItem : function(el) { diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index 7f1cebe4da..274c5903a7 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -185,7 +185,7 @@ commentsBox = { this.st += num; this.total = total; - $('#commentsdiv img.waiting').show(); + $('#commentsdiv .spinner').show(); data = { 'action' : 'get-comments', @@ -200,7 +200,7 @@ commentsBox = { function(r) { r = wpAjax.parseAjaxResponse(r); $('#commentsdiv .widefat').show(); - $('#commentsdiv img.waiting').hide(); + $('#commentsdiv .spinner').hide(); if ( 'object' == typeof r && r.responses[0] ) { $('#the-comment-list').append( r.responses[0].data ); diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js index ae779c6803..079c73b5e4 100644 --- a/wp-admin/js/theme.js +++ b/wp-admin/js/theme.js @@ -156,7 +156,7 @@ var ThemeScroller; // Cache jQuery selectors this.$outList = $('#availablethemes'); - this.$spinner = $('div.tablenav.bottom').children( 'img.ajax-loading' ); + this.$spinner = $('div.tablenav.bottom').children( '.spinner' ); this.$window = $(window); this.$document = $(document); @@ -231,16 +231,16 @@ var ThemeScroller; 'list_args': list_args }; - this.$spinner.css( 'visibility', 'visible' ); + this.$spinner.show(); $.getJSON( ajaxurl, query ) .done( function( response ) { self.nextPage++; self.process( response ); - self.$spinner.css( 'visibility', 'hidden' ); + self.$spinner.hide(); self.querying = false; }) .fail( function() { - self.$spinner.css( 'visibility', 'hidden' ); + self.$spinner.hide(); self.querying = false; setTimeout( function() { self.ajax(); }, self.failedRetryDelay ); }); diff --git a/wp-admin/js/widgets.js b/wp-admin/js/widgets.js index 1092e235f5..87be4ddfd5 100644 --- a/wp-admin/js/widgets.js +++ b/wp-admin/js/widgets.js @@ -176,7 +176,7 @@ wpWidgets = { saveOrder : function(sb) { if ( sb ) - $('#' + sb).closest('div.widgets-holder-wrap').find('img.ajax-feedback').css('visibility', 'visible'); + $('#' + sb).closest('div.widgets-holder-wrap').find('.spinner').css('display', 'inline-block'); var a = { action: 'widgets-order', @@ -190,7 +190,7 @@ wpWidgets = { }); $.post( ajaxurl, a, function() { - $('img.ajax-feedback').css('visibility', 'hidden'); + $('.spinner').hide(); }); this.resize(); @@ -199,7 +199,7 @@ wpWidgets = { save : function(widget, del, animate, order) { var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a; widget = $(widget); - $('.ajax-feedback', widget).css('visibility', 'visible'); + $('.spinner', widget).show(); a = { action: 'save-widget', @@ -235,7 +235,7 @@ wpWidgets = { wpWidgets.resize(); } } else { - $('.ajax-feedback').css('visibility', 'hidden'); + $('.spinner').hide(); if ( r && r.length > 2 ) { $('div.widget-content', widget).html(r); wpWidgets.appendTitle(widget); diff --git a/wp-admin/js/wp-fullscreen.js b/wp-admin/js/wp-fullscreen.js index af96124157..df6791d606 100644 --- a/wp-admin/js/wp-fullscreen.js +++ b/wp-admin/js/wp-fullscreen.js @@ -205,7 +205,7 @@ PubSub.prototype.publish = function( topic, args ) { */ api.save = function() { - var hidden = $('#hiddenaction'), old = hidden.val(), spinner = $('#wp-fullscreen-save img'), + var hidden = $('#hiddenaction'), old = hidden.val(), spinner = $('#wp-fullscreen-save .spinner'), message = $('#wp-fullscreen-save span'); spinner.show(); diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 125d8f2edc..3fc77ddaf8 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -44,11 +44,11 @@ function options_general_add_js() { }); $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { var format = $(this); - format.siblings('img').css('visibility','visible'); + format.siblings('.spinner').css('display', 'inline-block'); // show(); can't be used here $.post(ajaxurl, { action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', date : format.val() - }, function(d) { format.siblings('img').css('visibility','hidden'); format.siblings('.example').text(d); } ); + }, function(d) { format.siblings('.spinner').hide(); format.siblings('.example').text(d); } ); }); }); //]]> @@ -250,7 +250,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo ' ' . date_i18n( get_option('date_format') ) . " \n"; + echo '/> ' . __('Custom:') . ' ' . date_i18n( get_option('date_format') ) . " \n"; echo "\t" . __('Documentation on date and time formatting.') . "
\n"; ?> @@ -282,7 +282,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo ' ' . date_i18n( get_option('time_format') ) . " \n"; + echo '/> ' . __('Custom:') . ' ' . date_i18n( get_option('time_format') ) . " \n"; ; ?> diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index cd6d02fb2b..e3660be25f 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -427,7 +427,7 @@ var photostorage = false; show('photo'); jQuery('#title').unbind(); - jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); + jQuery('#publish, #save').click(function() { jQuery('.press-this #publishing-actions .spinner').css('display', 'inline-block'); }); $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){ $(this).siblings('.inside').toggle(); @@ -467,7 +467,7 @@ $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( echo '