WordPress.org

Make WordPress Core

Ticket #18900: 18900.patch

File 18900.patch, 3.0 KB (added by johnbillion, 4 years ago)
  • wp-admin/options-writing.php

     
    8484<?php do_settings_fields('writing', 'default'); ?> 
    8585</table> 
    8686 
    87  
     87<div class="hide-if-no-js"> 
    8888<h3 class="title"><?php _e('Press This') ?></h3> 
    8989<p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p> 
    9090<p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p> 
     
    9494        <p class="description"><?php _e('If your bookmarks toolbar is hidden: copy the code below, open your Bookmarks manager, create new bookmark, type Press This into the name field and paste the code into the URL field.') ?></p> 
    9595        <p><textarea rows="5" cols="120" readonly="readonly"><?php echo htmlspecialchars( get_shortcut_link() ); ?></textarea></p> 
    9696</div> 
     97</div> 
    9798 
    9899<?php if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { ?> 
    99100<h3><?php _e('Post via e-mail') ?></h3> 
  • wp-admin/tools.php

     
    2828<h2><?php echo esc_html( $title ); ?></h2> 
    2929 
    3030<?php if ( current_user_can('edit_posts') ) : ?> 
    31 <div class="tool-box"> 
     31<div class="tool-box hide-if-no-js""> 
    3232        <h3 class="title"><?php _e('Press This') ?></h3> 
    3333        <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p> 
    3434 
  • wp-admin/user-edit.php

     
    194194 
    195195<table class="form-table"> 
    196196<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?> 
    197         <tr> 
     197        <tr class="hide-if-no-js"> 
    198198                <th scope="row"><?php _e('Visual Editor')?></th> 
    199199                <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></td> 
    200200        </tr> 
     
    207207<?php 
    208208endif; // $_wp_admin_css_colors 
    209209if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> 
    210 <tr> 
     210<tr class="hide-if-no-js"> 
    211211<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> 
    212212<td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e('Enable keyboard shortcuts for comment moderation.'); ?></label> <?php _e('<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>'); ?></td> 
    213213</tr>