Make WordPress Core

Ticket #24795: 24795.diff

File 24795.diff, 1.9 KB (added by technosailor, 13 years ago)
  • wp-includes/pluggable.php

     
    17461746}
    17471747endif;
    17481748
     1749/**
     1750 * Determines if the User Operating System is Mac OS X or not
     1751 *
     1752 * Uses User Agent sniffing
     1753 * @since  3.6
     1754 * @return  boolean Returns true if the operating system is a Mac and false otherwise
     1755 */
     1756if( !function_exists( 'is_osx' ) ) :
     1757function is_osx() {
     1758        if( strpos( $_SERVER['HTTP_USER_AGENT'], 'Macintosh; Intel Mac OS X' ) !== false )
     1759                return true;
     1760       
     1761        return false;
     1762}
     1763endif;
  • wp-admin/options-permalink.php

     
    271271        <?php endif; ?>
    272272<?php else :
    273273        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&#8217;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>
     274<p><?php _e( sprintf( '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&#8217;t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>%s + A</kbd> to select all.', is_osx() ? 'Command (⌘)' : 'CTRL' ) ) ?></p>
    275275<form action="options-permalink.php" method="post">
    276276<?php wp_nonce_field('update-permalink') ?>
    277277        <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>