Make WordPress Core


Ignore:
Timestamp:
11/20/2012 06:20:14 PM (14 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.