Make WordPress Core

Ticket #22456: 22456-post-and-quickpress-labels.diff

File 22456-post-and-quickpress-labels.diff, 2.8 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/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

     
    231231        display: none;
    232232}
    233233
     234.no-js #quick-press .screen-reader-text,
     235.no-js #post-body #title-prompt-text,
     236.no-js #wp-content-wrap .screen-reader-text {
     237        color: #bbb;
     238        display: block;
     239        font-size: 12px !important;
     240        height: auto;
     241    left: 0;
     242    overflow: visible;
     243    padding: 3px 0 !important;
     244    position: relative !important;
     245    top: 0;
     246    width: auto;
     247}
     248
    234249/* include margin and padding in the width calculation of input and textarea */
    235250input[type="text"],
    236251input[type="password"],