Make WordPress Core

Ticket #22456: 22456.diff

File 22456.diff, 9.6 KB (added by lessbloat, 12 years ago)
  • wp-includes/class-wp-editor.php

     
    124124                        echo $set['editor_css'] . "\n";
    125125
    126126                if ( !empty($buttons) || $set['media_buttons'] ) {
    127                         echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools">';
     127                        echo '<div id="wp-' . $editor_id . '-editor-tools" class="hide-if-no-js wp-editor-tools">';
    128128                        echo $buttons;
    129129
    130130                        if ( $set['media_buttons'] ) {
     
    140140                        echo "</div>\n";
    141141                }
    142142
    143                 $the_editor = apply_filters('the_editor', '<div id="wp-' . $editor_id . '-editor-container" class="wp-editor-container"><textarea' . $editor_class . $height . $tabindex . ' cols="40" name="' . $set['textarea_name'] . '" id="' . $editor_id . '">%s</textarea></div>');
     143                $the_editor = apply_filters('the_editor', '<label class="screen-reader-text" for="content">' . __( 'Content' ) . '</label><div id="wp-' . $editor_id . '-editor-container" class="wp-editor-container"><textarea' . $editor_class . $height . $tabindex . ' cols="40" name="' . $set['textarea_name'] . '" id="' . $editor_id . '">%s</textarea></div>');
    144144                $content = apply_filters('the_editor_content', $content);
    145145
    146146                printf($the_editor, $content);
  • wp-admin/includes/class-wp-ms-sites-list-table.php

     
    144144        function get_columns() {
    145145                $blogname_columns = ( is_subdomain_install() ) ? __( 'Domain' ) : __( 'Path' );
    146146                $sites_columns = array(
    147                         'cb'          => '<input type="checkbox" />',
     147                        'cb'          => '<input type="checkbox" class="hide-if-no-js" />',
    148148                        'blogname'    => $blogname_columns,
    149149                        'lastupdated' => __( 'Last Updated' ),
    150150                        'registered'  => _x( 'Registered', 'site' ),
  • wp-admin/includes/class-wp-posts-list-table.php

     
    251251
    252252                $posts_columns = array();
    253253
    254                 $posts_columns['cb'] = '<input type="checkbox" />';
     254                $posts_columns['cb'] = '<input type="checkbox" class="hide-if-no-js" />';
    255255
    256256                /* translators: manage posts column name */
    257257                $posts_columns['title'] = _x( 'Title', 'column name' );
  • wp-admin/includes/class-wp-media-list-table.php

     
    127127
    128128        function get_columns() {
    129129                $posts_columns = array();
    130                 $posts_columns['cb'] = '<input type="checkbox" />';
     130                $posts_columns['cb'] = '<input type="checkbox" class="hide-if-no-js" />';
    131131                $posts_columns['icon'] = '';
    132132                /* translators: column name */
    133133                $posts_columns['title'] = _x( 'File', 'column name' );
  • wp-admin/includes/class-wp-links-list-table.php

     
    7777
    7878        function get_columns() {
    7979                return array(
    80                         'cb'         => '<input type="checkbox" />',
     80                        'cb'         => '<input type="checkbox" class="hide-if-no-js" />',
    8181                        'name'       => _x( 'Name', 'link name' ),
    8282                        'url'        => __( 'URL' ),
    8383                        'categories' => __( 'Categories' ),
  • wp-admin/includes/class-wp-terms-list-table.php

     
    9595
    9696        function get_columns() {
    9797                $columns = array(
    98                         'cb'          => '<input type="checkbox" />',
     98                        'cb'          => '<input type="checkbox" class="hide-if-no-js" />',
    9999                        'name'        => _x( 'Name', 'term name' ),
    100100                        'description' => __( 'Description' ),
    101101                        'slug'        => __( 'Slug' ),
  • wp-admin/includes/class-wp-users-list-table.php

     
    161161
    162162        function get_columns() {
    163163                $c = array(
    164                         'cb'       => '<input type="checkbox" />',
     164                        'cb'       => '<input type="checkbox" class="hide-if-no-js" />',
    165165                        'username' => __( 'Username' ),
    166166                        'name'     => __( 'Name' ),
    167167                        'email'    => __( 'E-mail' ),
  • wp-admin/includes/class-wp-ms-themes-list-table.php

     
    167167        }
    168168
    169169        function get_columns() {
    170                 global $status;
    171 
    172170                return array(
    173                         'cb'          => '<input type="checkbox" />',
     171                        'cb'          => '<input type="checkbox" class="hide-if-no-js" />',
    174172                        'name'        => __( 'Theme' ),
    175173                        'description' => __( 'Description' ),
    176174                );
  • wp-admin/includes/class-wp-list-table.php

     
    664664                if ( ! empty( $columns['cb'] ) ) {
    665665                        static $cb_counter = 1;
    666666                        $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All' ) . '</label>'
    667                                 . '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />';
     667                                . '<input id="cb-select-all-' . $cb_counter . '" class="hide-if-no-js" type="checkbox" />';
    668668                        $cb_counter++;
    669669                }
    670670
  • wp-admin/includes/class-wp-ms-users-list-table.php

     
    111111
    112112        function get_columns() {
    113113                $users_columns = array(
    114                         'cb'         => '<input type="checkbox" />',
     114                        'cb'         => '<input type="checkbox" class="hide-if-no-js" />',
    115115                        'username'   => __( 'Username' ),
    116116                        'name'       => __( 'Name' ),
    117117                        'email'      => __( 'E-mail' ),
  • wp-admin/includes/class-wp-plugins-list-table.php

     
    177177                global $status;
    178178
    179179                return array(
    180                         'cb'          => !in_array( $status, array( 'mustuse', 'dropins' ) ) ? '<input type="checkbox" />' : '',
     180                        'cb'          => !in_array( $status, array( 'mustuse', 'dropins' ) ) ? '<input type="checkbox" class="hide-if-no-js" />' : '',
    181181                        'name'        => __( 'Plugin' ),
    182182                        'description' => __( 'Description' ),
    183183                );
  • wp-admin/includes/class-wp-comments-list-table.php

     
    252252                $columns = array();
    253253
    254254                if ( $this->checkbox )
    255                         $columns['cb'] = '<input type="checkbox" />';
     255                        $columns['cb'] = '<input type="checkbox" class="hide-if-no-js" />';
    256256
    257257                $columns['author'] = __( 'Author' );
    258258                $columns['comment'] = _x( 'Comment', 'column name' );
  • wp-admin/edit-form-advanced.php

     
    322322    $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';
    323323
    324324if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>
    325         <div id="edit-slug-box">
     325        <div id="edit-slug-box" class="hide-if-no-js">
    326326        <?php
    327327                if ( $sample_permalink_html && 'auto-draft' != get_post_status( $post ) )
    328328                        echo $sample_permalink_html;
  • wp-admin/css/wp-admin.css

     
    227227.hidden,
    228228.js .closed .inside,
    229229.js .hide-if-js,
    230 .no-js .hide-if-no-js {
     230.no-js .hide-if-no-js,
     231.no-js #postimagediv,
     232.no-js #postcustom #enternew,
     233.no-js .wp_attachment_image input.button {
    231234        display: none;
    232235}
    233236
     237.no-js #quick-press .screen-reader-text,
     238.no-js #post-body #title-prompt-text,
     239.no-js #wp-content-wrap .screen-reader-text {
     240        color: #bbb;
     241        display: block;
     242        font-size: 12px !important;
     243        height: auto;
     244    left: 0;
     245    overflow: visible;
     246    padding: 3px 0 !important;
     247    position: relative !important;
     248    top: 0;
     249    width: auto;
     250}
     251
    234252/* include margin and padding in the width calculation of input and textarea */
    235253input[type="text"],
    236254input[type="password"],
     
    60566074
    60576075#dashboard-widgets h3 .postbox-title-action {
    60586076        position: absolute;
    6059         right: 30px;
     6077        right: 10px;
    60606078        padding: 0;
    60616079        top: 5px;
    60626080}
    60636081
     6082.js #dashboard-widgets h3 .postbox-title-action {
     6083        right: 30px;
     6084}
     6085
    60646086#dashboard-widgets h4 {
    60656087        font-weight: normal;
    60666088        font-size: 13px;