Make WordPress Core

Changeset 22719


Ignore:
Timestamp:
11/20/2012 06:20:14 PM (12 years ago)
Author:
nacin
Message:

No-JS fixes.

  • Hide QuickPress.
  • Hide the gap between the title and content editor.
  • Hide 'select all' checkboxes in list tables.
  • Hide a non-functioning link in the custom fields metabox.
  • Hide non-functioning buttons in the featured image box (same as in 3.4).
  • RTL and miscellany.

props TobiasBg, lessbloat, ocean90. fixes #22456.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin-rtl.css

    r22653 r22719  
    19101910
    19111911#dashboard-widgets h3 .postbox-title-action {
     1912    right: auto;
     1913    left: 10px;
     1914}
     1915
     1916.js #dashboard-widgets h3 .postbox-title-action {
    19121917    right: auto;
    19131918    left: 30px;
  • trunk/wp-admin/css/wp-admin.css

    r22696 r22719  
    628628}
    629629
     630.no-js .widefat thead .check-column input,
     631.no-js .widefat tfoot .check-column input {
     632    display: none;
     633}
     634
    630635.widefat .num,
    631636.column-comments,
     
    23092314}
    23102315
    2311 .ie8 .welcome-panel .welcome-panel-column { 
     2316.ie8 .welcome-panel .welcome-panel-column {
    23122317    min-width: 230px;
    23132318}
     
    33933398}
    33943399
     3400.no-js #postcustomstuff #enternew {
     3401    display: none;
     3402}
    33953403
    33963404/*------------------------------------------------------------------------------
     
    34453453}
    34463454
    3447 #select-featured-image.has-featured-image .remove {
     3455.js #select-featured-image.has-featured-image .remove {
    34483456    display: inline-block;
     3457}
     3458
     3459.no-js #select-featured-image .choose {
     3460    display: none;
    34493461}
    34503462
     
    41584170.A1B1 .button {
    41594171    float: left;
     4172}
     4173
     4174.no-js .wp_attachment_image .button {
     4175    display: none;
    41604176}
    41614177
     
    60536069#dashboard-widgets h3 .postbox-title-action {
    60546070    position: absolute;
    6055     right: 30px;
     6071    right: 10px;
    60566072    padding: 0;
    60576073    top: 5px;
     6074}
     6075
     6076.js #dashboard-widgets h3 .postbox-title-action {
     6077    right: 30px;
    60586078}
    60596079
     
    62416261
    62426262/* QuickPress */
     6263.no-js #dashboard_quick_press {
     6264    display: none;
     6265}
     6266
    62436267#dashboard_quick_press .easy-blogging {
    62446268    padding: 0 8px;
  • trunk/wp-admin/edit-form-advanced.php

    r22490 r22719  
    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 ) )
  • trunk/wp-includes/class-wp-editor.php

    r22567 r22719  
    110110            }
    111111
    112             $buttons .= '<a id="' . $editor_id . '-html" class="hide-if-no-js wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . __('Text') . "</a>\n";
    113             $buttons .= '<a id="' . $editor_id . '-tmce" class="hide-if-no-js wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
     112            $buttons .= '<a id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . __('Text') . "</a>\n";
     113            $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
    114114        }
    115115
     
    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="wp-editor-tools hide-if-no-js">';
    128128            echo $buttons;
    129129
     
    134134                    include(ABSPATH . 'wp-admin/includes/media.php');
    135135
    136                 echo '<div id="wp-' . $editor_id . '-media-buttons" class="hide-if-no-js wp-media-buttons">';
     136                echo '<div id="wp-' . $editor_id . '-media-buttons" class="wp-media-buttons">';
    137137                do_action('media_buttons', $editor_id);
    138138                echo "</div>\n";
Note: See TracChangeset for help on using the changeset viewer.