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. git-svn-id: http://core.svn.wordpress.org/trunk@22719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa10ccba23
commit
7e0061375a
|
@ -1909,6 +1909,11 @@ a.rsswidget,
|
|||
}
|
||||
|
||||
#dashboard-widgets h3 .postbox-title-action {
|
||||
right: auto;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.js #dashboard-widgets h3 .postbox-title-action {
|
||||
right: auto;
|
||||
left: 30px;
|
||||
}
|
||||
|
|
|
@ -627,6 +627,11 @@ select,
|
|||
padding: 10px 0 0;
|
||||
}
|
||||
|
||||
.no-js .widefat thead .check-column input,
|
||||
.no-js .widefat tfoot .check-column input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.widefat .num,
|
||||
.column-comments,
|
||||
.column-links,
|
||||
|
@ -3392,6 +3397,9 @@ td.plugin-title p {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.no-js #postcustomstuff #enternew {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
11.2 - Post Revisions
|
||||
|
@ -3444,10 +3452,14 @@ table.diff .diff-deletedline del, table.diff .diff-addedline ins {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#select-featured-image.has-featured-image .remove {
|
||||
.js #select-featured-image.has-featured-image .remove {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.no-js #select-featured-image .choose {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
12.0 - Categories
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -4159,6 +4171,10 @@ td.imgedit-settings input {
|
|||
float: left;
|
||||
}
|
||||
|
||||
.no-js .wp_attachment_image .button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp_attachment_image .spinner,
|
||||
.A1B1 .spinner {
|
||||
float: left;
|
||||
|
@ -6052,11 +6068,15 @@ h3:hover .edit-box {
|
|||
|
||||
#dashboard-widgets h3 .postbox-title-action {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
right: 10px;
|
||||
padding: 0;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.js #dashboard-widgets h3 .postbox-title-action {
|
||||
right: 30px;
|
||||
}
|
||||
|
||||
#dashboard-widgets h4 {
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
|
@ -6240,6 +6260,10 @@ h3:hover .edit-box {
|
|||
}
|
||||
|
||||
/* QuickPress */
|
||||
.no-js #dashboard_quick_press {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .easy-blogging {
|
||||
padding: 0 8px;
|
||||
text-align: left;
|
||||
|
|
|
@ -322,7 +322,7 @@ if ( !empty($shortlink) )
|
|||
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';
|
||||
|
||||
if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>
|
||||
<div id="edit-slug-box">
|
||||
<div id="edit-slug-box" class="hide-if-no-js">
|
||||
<?php
|
||||
if ( $sample_permalink_html && 'auto-draft' != get_post_status( $post ) )
|
||||
echo $sample_permalink_html;
|
||||
|
|
|
@ -109,8 +109,8 @@ final class _WP_Editors {
|
|||
$switch_class = 'tmce-active';
|
||||
}
|
||||
|
||||
$buttons .= '<a id="' . $editor_id . '-html" class="hide-if-no-js wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . __('Text') . "</a>\n";
|
||||
$buttons .= '<a id="' . $editor_id . '-tmce" class="hide-if-no-js wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
|
||||
$buttons .= '<a id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . __('Text') . "</a>\n";
|
||||
$buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
|
||||
}
|
||||
|
||||
echo '<div id="wp-' . $editor_id . '-wrap" class="wp-editor-wrap ' . $switch_class . '">';
|
||||
|
@ -124,7 +124,7 @@ final class _WP_Editors {
|
|||
echo $set['editor_css'] . "\n";
|
||||
|
||||
if ( !empty($buttons) || $set['media_buttons'] ) {
|
||||
echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools">';
|
||||
echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools hide-if-no-js">';
|
||||
echo $buttons;
|
||||
|
||||
if ( $set['media_buttons'] ) {
|
||||
|
@ -133,7 +133,7 @@ final class _WP_Editors {
|
|||
if ( !function_exists('media_buttons') )
|
||||
include(ABSPATH . 'wp-admin/includes/media.php');
|
||||
|
||||
echo '<div id="wp-' . $editor_id . '-media-buttons" class="hide-if-no-js wp-media-buttons">';
|
||||
echo '<div id="wp-' . $editor_id . '-media-buttons" class="wp-media-buttons">';
|
||||
do_action('media_buttons', $editor_id);
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue