Ticket #31476: 31476.patch
File 31476.patch, 5.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
2785 2785 2786 2786 /* @todo: can we use a common class for these? */ 2787 2787 .nav-menus-php .item-edit:before, 2788 .widget-top a.widget-action:after,2788 .widget-top .widget-action:after, 2789 2789 .control-section .accordion-section-title:after, 2790 2790 .accordion-section-title:after { 2791 2791 right: 0; … … 2820 2820 color: #777; 2821 2821 } 2822 2822 2823 .widget-top a.widget-action:after {2823 .widget-top .widget-action:after { 2824 2824 padding: 12px 12px 11px; 2825 2825 } 2826 2826 2827 .widget-top a.widget-action:focus:after {2827 .widget-top .widget-action:focus:after { 2828 2828 -webkit-box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); 2829 2829 box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8); 2830 2830 } … … 2843 2843 .control-section.open .accordion-section-title:after, 2844 2844 #customize-info.open .accordion-section-title:after, 2845 2845 .nav-menus-php .menu-item-edit-active .item-edit:before, 2846 .widget.open .widget-top a.widget-action:after {2846 .widget.open .widget-top .widget-action:after { 2847 2847 content: '\f142'; 2848 2848 } 2849 2849 … … 3019 3019 /* @todo: evaluate - most of these were likely replaced by dashicons */ 3020 3020 .curtime #timestamp, 3021 3021 #screen-meta-links a.show-settings, 3022 .widget-top a.widget-action,3023 .widget-top a.widget-action:hover,3022 .widget-top .widget-action, 3023 .widget-top .widget-action:hover, 3024 3024 .sidebar-name-arrow, 3025 3025 .sidebar-name:hover .sidebar-name-arrow, 3026 3026 .meta-box-sortables .postbox:hover .handlediv, -
src/wp-admin/css/customize-widgets.css
75 75 cursor: move; 76 76 } 77 77 78 .customize-control-widget_form.expanded a.widget-action:after {78 .customize-control-widget_form.expanded .widget-action:after { 79 79 content: "\f142"; 80 80 } 81 81 82 .customize-control-widget_form.wide-widget-control a.widget-action:after {82 .customize-control-widget_form.wide-widget-control .widget-action:after { 83 83 content: "\f139"; 84 84 } 85 85 86 .customize-control-widget_form.wide-widget-control.expanded a.widget-action:after {86 .customize-control-widget_form.wide-widget-control.expanded .widget-action:after { 87 87 content: "\f141"; 88 88 } 89 89 … … 591 591 .widget-title h4 { 592 592 padding: 13px 15px; 593 593 } 594 .widget-top a.widget-action:after {594 .widget-top .widget-action:after { 595 595 padding-top: 9px; 596 596 } 597 597 .widget-reorder-nav span { -
src/wp-admin/css/widgets.css
14 14 background: #f7f7f7; 15 15 } 16 16 17 .widget-top a.widget-action,18 .widget-top a.widget-action:hover {17 .widget-top .widget-action, 18 .widget-top .widget-action:hover { 19 19 -webkit-box-shadow: none; 20 20 box-shadow: none; 21 21 outline: none; … … 48 48 } 49 49 50 50 .deleting .widget-title, 51 .deleting .widget-top a.widget-action:after {51 .deleting .widget-top .widget-action:after { 52 52 color: #aaa; 53 53 } 54 54 -
src/wp-admin/includes/widgets.php
194 194 echo $sidebar_args['before_widget']; ?> 195 195 <div class="widget-top"> 196 196 <div class="widget-title-action"> 197 < a class="widget-action hide-if-no-js" href="#available-widgets"></a>197 <button type="button" class="button-reset widget-action hide-if-no-js"><span class="screen-reader-text"><?php printf( __( '%s widget settings' ), $widget_title ); ?></span></button> 198 198 <a class="widget-control-edit hide-if-js" href="<?php echo esc_url( add_query_arg( $query_arg ) ); ?>"> 199 199 <span class="edit"><?php _ex( 'Edit', 'widget' ); ?></span> 200 200 <span class="add"><?php _ex( 'Add', 'widget' ); ?></span> … … 223 223 224 224 <div class="widget-control-actions"> 225 225 <div class="alignleft"> 226 < a class="widget-control-remove" href="#remove"><?php _e('Delete'); ?></a> |227 < a class="widget-control-close" href="#close"><?php _e('Close'); ?></a>226 <button type="button"class="button-link widget-control-remove"><?php _e( 'Delete' ); ?></button> | 227 <button type="button" class="button-link widget-control-close"><?php _e( 'Close' ); ?></button> 228 228 </div> 229 229 <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>"> 230 230 <?php submit_button( __( 'Save' ), 'button-primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?> -
src/wp-admin/js/widgets.js
79 79 wpWidgets.appendTitle( this ); 80 80 81 81 if ( $this.find( 'p.widget-error' ).length ) { 82 $this.find( ' a.widget-action' ).trigger('click');82 $this.find( '.widget-action' ).trigger('click'); 83 83 } 84 84 }); 85 85 … … 195 195 } 196 196 197 197 if ( addNew ) { 198 $widget.find( ' a.widget-action' ).trigger('click');198 $widget.find( '.widget-action' ).trigger('click'); 199 199 } else { 200 200 wpWidgets.saveOrder( $sidebar.attr('id') ); 201 201 }