WordPress.org

Make WordPress Core

Ticket #31476: 31476.patch

File 31476.patch, 5.3 KB (added by afercia, 4 years ago)
  • src/wp-admin/css/common.css

     
    27852785
    27862786/* @todo: can we use a common class for these? */
    27872787.nav-menus-php .item-edit:before,
    2788 .widget-top a.widget-action:after,
     2788.widget-top .widget-action:after,
    27892789.control-section .accordion-section-title:after,
    27902790.accordion-section-title:after {
    27912791        right: 0;
     
    28202820        color: #777;
    28212821}
    28222822
    2823 .widget-top a.widget-action:after {
     2823.widget-top .widget-action:after {
    28242824        padding: 12px 12px 11px;
    28252825}
    28262826
    2827 .widget-top a.widget-action:focus:after {
     2827.widget-top .widget-action:focus:after {
    28282828        -webkit-box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);
    28292829        box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);
    28302830}
     
    28432843.control-section.open .accordion-section-title:after,
    28442844#customize-info.open .accordion-section-title:after,
    28452845.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 {
    28472847        content: '\f142';
    28482848}
    28492849
     
    30193019        /* @todo: evaluate - most of these were likely replaced by dashicons */
    30203020        .curtime #timestamp,
    30213021        #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,
    30243024        .sidebar-name-arrow,
    30253025        .sidebar-name:hover .sidebar-name-arrow,
    30263026        .meta-box-sortables .postbox:hover .handlediv,
  • src/wp-admin/css/customize-widgets.css

     
    7575        cursor: move;
    7676}
    7777
    78 .customize-control-widget_form.expanded a.widget-action:after {
     78.customize-control-widget_form.expanded .widget-action:after {
    7979        content: "\f142";
    8080}
    8181
    82 .customize-control-widget_form.wide-widget-control a.widget-action:after {
     82.customize-control-widget_form.wide-widget-control .widget-action:after {
    8383        content: "\f139";
    8484}
    8585
    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 {
    8787        content: "\f141";
    8888}
    8989
     
    591591        .widget-title h4 {
    592592                padding: 13px 15px;
    593593        }
    594         .widget-top a.widget-action:after {
     594        .widget-top .widget-action:after {
    595595                padding-top: 9px;
    596596        }
    597597        .widget-reorder-nav span {
  • src/wp-admin/css/widgets.css

     
    1414        background: #f7f7f7;
    1515}
    1616
    17 .widget-top a.widget-action,
    18 .widget-top a.widget-action:hover {
     17.widget-top .widget-action,
     18.widget-top .widget-action:hover {
    1919        -webkit-box-shadow: none;
    2020        box-shadow: none;
    2121        outline: none;
     
    4848}
    4949
    5050.deleting .widget-title,
    51 .deleting .widget-top a.widget-action:after {
     51.deleting .widget-top .widget-action:after {
    5252        color: #aaa;
    5353}
    5454
  • src/wp-admin/includes/widgets.php

     
    194194        echo $sidebar_args['before_widget']; ?>
    195195        <div class="widget-top">
    196196        <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>
    198198                <a class="widget-control-edit hide-if-js" href="<?php echo esc_url( add_query_arg( $query_arg ) ); ?>">
    199199                        <span class="edit"><?php _ex( 'Edit', 'widget' ); ?></span>
    200200                        <span class="add"><?php _ex( 'Add', 'widget' ); ?></span>
     
    223223
    224224        <div class="widget-control-actions">
    225225                <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>
    228228                </div>
    229229                <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>">
    230230                        <?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

     
    7979                        wpWidgets.appendTitle( this );
    8080
    8181                        if ( $this.find( 'p.widget-error' ).length ) {
    82                                 $this.find( 'a.widget-action' ).trigger('click');
     82                                $this.find( '.widget-action' ).trigger('click');
    8383                        }
    8484                });
    8585
     
    195195                                }
    196196
    197197                                if ( addNew ) {
    198                                         $widget.find( 'a.widget-action' ).trigger('click');
     198                                        $widget.find( '.widget-action' ).trigger('click');
    199199                                } else {
    200200                                        wpWidgets.saveOrder( $sidebar.attr('id') );
    201201                                }