Make WordPress Core

Ticket #33646: 33646.4.patch

File 33646.4.patch, 4.0 KB (added by afercia, 10 years ago)
  • src/wp-admin/css/common.css

     
    15651565        background-position: bottom left;
    15661566}
    15671567
    1568 #screen-options-wrap h5,
     1568#screen-options-wrap legend,
    15691569#contextual-help-wrap h5 {
    1570         margin: 8px 0;
     1570        margin: 0;
     1571        padding: 8px 0;
    15711572        font-size: 13px;
     1573        font-weight: 600;
    15721574}
    15731575
    15741576.metabox-prefs label {
     
    15771579        line-height: 30px;
    15781580}
    15791581
     1582#number-of-columns {
     1583        display: inline-block;
     1584        vertical-align: middle;
     1585        line-height: 30px;
     1586}
     1587
    15801588.metabox-prefs label input[type=checkbox] {
    15811589        margin-top: -4px;
    15821590        margin-right: 6px;
  • src/wp-admin/css/customize-nav-menus.css

     
    349349        display: none;
    350350        background: #fff;
    351351        border-top: 1px solid #ddd;
    352         padding: 4px 15px 0;
     352        padding: 4px 15px 15px;
    353353}
    354354
    355355.wp-customizer .metabox-prefs label {
  • src/wp-admin/includes/class-wp-screen.php

     
    903903                $columns = get_column_headers( $this );
    904904                $hidden  = get_hidden_columns( $this );
    905905
     906                $do_outer_fieldset = (
     907                        isset( $wp_meta_boxes[ $this->id ] )
     908                        ||
     909                        $this->get_option( 'per_page' )
     910                        ||
     911                        ( $columns && empty( $columns['_title'] ) )
     912                );
     913
     914                $do_inner_fieldset = ( ! empty( $columns['_title'] ) );
     915
    906916                ?>
    907917                <?php if ( $options['wrap'] ) : ?>
    908918                        <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>">
    909919                <?php endif; ?>
    910920                <form id="adv-settings" method="post">
    911                 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
    912                         <h5><?php _e( 'Show on screen' ); ?></h5>
     921                <?php if ( $do_outer_fieldset ) : ?>
     922                        <fieldset>
     923                                <legend><?php _e( 'Show on screen' ); ?></legend>
    913924                <?php
    914925                endif;
    915926
     
    932943                                                echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
    933944                                        }
    934945                                ?>
    935                                 <br class="clear" />
    936946                        </div>
    937947                        <?php endif;
    938948                        if ( $columns ) :
    939                                 if ( ! empty( $columns['_title'] ) ) : ?>
    940                         <h5><?php echo $columns['_title']; ?></h5>
     949                                if ( $do_inner_fieldset ) : ?>
     950                        <fieldset>
     951                                <legend><?php echo $columns['_title']; ?></legend>
    941952                        <?php endif; ?>
    942953                        <div class="metabox-prefs">
    943954                                <?php
     
    958969                                        echo "$title</label>\n";
    959970                                }
    960971                                ?>
    961                                 <br class="clear" />
    962972                        </div>
     973                        <?php if ( $do_inner_fieldset ) : ?>
     974                        </fieldset>
     975                        <?php endif; ?>
    963976                <?php endif;
    964977
     978                if ( $do_outer_fieldset ) : ?>
     979                        </fieldset>
     980                <?php endif;
    965981                $this->render_screen_layout();
    966982                $this->render_per_page_options();
    967983                echo $this->_screen_settings;
     
    9871003                $num = $this->get_option( 'layout_columns', 'max' );
    9881004
    9891005                ?>
    990                 <h5 class="screen-layout"><?php _e('Screen Layout'); ?></h5>
    991                 <div class='columns-prefs'><?php
    992                         _e('Number of Columns:');
    993                         for ( $i = 1; $i <= $num; ++$i ):
    994                                 ?>
     1006                <fieldset>
     1007                <legend class="screen-layout"><?php _e( 'Screen Layout' ); ?></legend>
     1008                <div class='columns-prefs'>
     1009                        <span id='number-of-columns'><?php _e( 'Number of Columns:' ); ?></span>
     1010                        <?php for ( $i = 1; $i <= $num; ++$i ): ?>
    9951011                                <label class="columns-prefs-<?php echo $i; ?>">
    996                                         <input type='radio' name='screen_columns' value='<?php echo esc_attr( $i ); ?>'
    997                                                 <?php checked( $screen_layout_columns, $i ); ?> />
     1012                                        <input type="radio" name="screen_columns" aria-describedby="number-of-columns" value="<?php echo esc_attr( $i ); ?>" <?php checked( $screen_layout_columns, $i ); ?> />
    9981013                                        <?php echo esc_html( $i ); ?>
    9991014                                </label>
    1000                                 <?php
    1001                         endfor; ?>
     1015                        <?php endfor; ?>
    10021016                </div>
     1017                </fieldset>
    10031018                <?php
    10041019        }
    10051020