Ticket #24795: 24795.2.diff
File 24795.2.diff, 1.6 KB (added by , 11 years ago) |
---|
-
wp-admin/options-permalink.php
64 64 jQuery('#permalink_structure').focus(function() { 65 65 jQuery("#custom_selection").attr('checked', 'checked'); 66 66 }); 67 jQuery('#rules').on('focus',function(ev){ 68 jQuery(this).select(); 69 jQuery(this).on('mouseup', function(ev){ 70 jQuery(this).unbind('mouseup'); 71 return; 72 }); 73 }); 67 74 }); 68 75 //]]> 69 76 </script> … … 271 278 <?php endif; ?> 272 279 <?php else : 273 280 if ( $permalink_structure && ! $usingpi && ! $writable ) : ?> 274 <p><?php _e( 'If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.')?></p>281 <p><?php _e( 'If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field to select all.' ); ?></p> 275 282 <form action="options-permalink.php" method="post"> 276 283 <?php wp_nonce_field('update-permalink') ?> 277 284 <p><textarea rows="6" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->mod_rewrite_rules() ); ?></textarea></p>