WordPress.org

Make WordPress Core

Ticket #22456: 22456.4.patch

File 22456.4.patch, 4.4 KB (added by lessbloat, 6 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/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-rtl.css

     
    15861586        right: 6px;
    15871587}
    15881588
     1589.no-js #post-body #title-prompt-text,
     1590.no-js #wp-content-wrap .screen-reader-text {
     1591        left: auto;
     1592        right: 0;
     1593}
     1594
    15891595/*------------------------------------------------------------------------------
    15901596  24.0  - Dead
    15911597------------------------------------------------------------------------------*/
     
    19101916
    19111917#dashboard-widgets h3 .postbox-title-action {
    19121918        right: auto;
     1919        left: 10px;
     1920}
     1921
     1922.js #dashboard-widgets h3 .postbox-title-action {
     1923        right: auto;
    19131924        left: 30px;
    19141925}
    19151926
  • 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,
     234.no-js #dashboard_quick_press {
    231235        display: none;
    232236}
    233237
     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        cursor: pointer;
     251}
     252
    234253/* include margin and padding in the width calculation of input and textarea */
    235254input[type="text"],
    236255input[type="password"],
     
    627646        padding: 10px 0 0;
    628647}
    629648
     649.no-js tfoot .check-column input[type='checkbox'],
     650.no-js thead .check-column input[type='checkbox'] {
     651        display: none;
     652}
     653
    630654.widefat .num,
    631655.column-comments,
    632656.column-links,
     
    23082332        float: left;
    23092333}
    23102334
    2311 .ie8 .welcome-panel .welcome-panel-column { 
     2335.ie8 .welcome-panel .welcome-panel-column {
    23122336        min-width: 230px;
    23132337}
    23142338
     
    60526076
    60536077#dashboard-widgets h3 .postbox-title-action {
    60546078        position: absolute;
    6055         right: 30px;
     6079        right: 10px;
    60566080        padding: 0;
    60576081        top: 5px;
    60586082}
    60596083
     6084.js #dashboard-widgets h3 .postbox-title-action {
     6085        right: 30px;
     6086}
     6087
    60606088#dashboard-widgets h4 {
    60616089        font-weight: normal;
    60626090        font-size: 13px;