Changeset 41376 for trunk/src/wp-admin/user-edit.php
- Timestamp:
- 09/13/2017 06:07:48 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/user-edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-edit.php
r41163 r41376 246 246 <th scope="row"><?php _e( 'Visual Editor' ); ?></th> 247 247 <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php if ( ! empty( $profileuser->rich_editing ) ) checked( 'false', $profileuser->rich_editing ); ?> /> <?php _e( 'Disable the visual editor when writing' ); ?></label></td> 248 </tr> 249 <?php endif; ?> 250 <?php 251 $show_syntax_highlighting_preference = ( 252 // For Custom HTML widget and Additional CSS in Customizer. 253 user_can( $profileuser, 'edit_theme_options' ) 254 || 255 // Edit plugins. 256 user_can( $profileuser, 'edit_plugins' ) 257 || 258 // Edit themes. 259 user_can( $profileuser, 'edit_themes' ) 260 ); 261 ?> 262 <?php if ( $show_syntax_highlighting_preference ) : ?> 263 <tr class="user-syntax-highlighting-wrap"> 264 <th scope="row"><?php _e( 'Syntax Highlighting' ); ?></th> 265 <td> 266 <label for="syntax_highlighting"><input name="syntax_highlighting" type="checkbox" id="syntax_highlighting" value="false" <?php if ( ! empty( $profileuser->syntax_highlighting ) ) checked( 'false', $profileuser->syntax_highlighting ); ?> /> <?php _e( 'Disable syntax highlighting when editing code' ); ?></label> 267 </td> 248 268 </tr> 249 269 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.