Index: wp-includes/pluggable.php =================================================================== --- wp-includes/pluggable.php (revision 25014) +++ wp-includes/pluggable.php (working copy) @@ -1748,3 +1748,18 @@ } endif; +/** + * Determines if the User Operating System is Mac OS X or not + * + * Uses User Agent sniffing + * @since 3.6 + * @return boolean Returns true if the operating system is a Mac and false otherwise + */ +if( !function_exists( 'is_osx' ) ) : +function is_osx() { + if( strpos( $_SERVER['HTTP_USER_AGENT'], 'Macintosh; Intel Mac OS X' ) !== false ) + return true; + + return false; +} +endif; Index: wp-admin/options-permalink.php =================================================================== --- wp-admin/options-permalink.php (revision 25014) +++ wp-admin/options-permalink.php (working copy) @@ -64,6 +64,13 @@ jQuery('#permalink_structure').focus(function() { jQuery("#custom_selection").attr('checked', 'checked'); }); + jQuery('#rules').on('focus',function(ev){ + jQuery(this).select(); + jQuery(this).on('mouseup', function(ev){ + jQuery(this).unbind('mouseup'); + return false; + }); + }); }); //]]> @@ -271,7 +278,7 @@ -
.htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess
file. Click in the field and press CTRL + a to select all.') ?>
.htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess
file. Click in the field to select all.', is_osx() ? 'Command (⌘)' : 'CTRL' ) ) ?>