Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r19528 r20990  
    12301230        }
    12311231
    1232 
    12331232        // See how much we should pad in the beginning
    12341233        $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins);
    … …  
    17481747 */
    17491748function user_can_richedit() {
    1750         global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_iphone, $is_IE;
     1749        global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE;
    17511750
    17521751        if ( !isset($wp_rich_edit) ) {
    17531752                $wp_rich_edit = false;
    17541753
    1755                 if ( get_user_option( 'rich_editing' ) == 'true' || !is_user_logged_in() ) { // default to 'true' for logged out users
     1754                if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users
    17561755                        if ( $is_safari ) {
    1757                                 if ( !$is_iphone || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 534 ) )
    1758                                         $wp_rich_edit = true;
     1756                                $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
    17591757                        } elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) {
    17601758                                $wp_rich_edit = true;
    … …  
    17981796 *
    17991797 * @see wp-includes/class-wp-editor.php
    1800  * @since 3.3
     1798 * @since 3.3.0
    18011799 *
    18021800 * @param string $content Initial content for the editor.
    … …  
    20382036                array( '#5589aa', '#cfdfe9', '#d1e5ee', '#eff8ff' ) );
    20392037        wp_admin_css_color( 'fresh', _x( 'Gray', 'admin color scheme' ), admin_url( 'css/colors-fresh.css' ),
    2040                 array( '#7c7976', '#c6c6c6', '#e0e0e0', '#f1f1f1' ) );
     2038                array( '#555', '#a0a0a0', '#ccc', '#f1f1f1' ) );
    20412039}
    20422040
    … …  
    20672065 * 'wp_print_styles' action has *not* yet been called, the CSS file will be
    20682066 * enqueued. If the wp_print_styles action *has* been called, the CSS link will
    2069  * be printed. Printing may be forced by passing TRUE as the $force_echo
     2067 * be printed. Printing may be forced by passing true as the $force_echo
    20702068 * (second) parameter.
    20712069 *
    … …  
    20812079 * @param string $file Optional. Style handle name or file name (without ".css" extension) relative
    20822080 *       to wp-admin/. Defaults to 'wp-admin'.
    2083  * @param bool $force_echo Optional.  Force the stylesheet link to be printed rather than enqueued.
     2081 * @param bool $force_echo Optional. Force the stylesheet link to be printed rather than enqueued.
    20842082 */
    20852083function wp_admin_css( $file = 'wp-admin', $force_echo = false ) {
    … …  
    20922090
    20932091        if ( $wp_styles->query( $handle ) ) {
    2094                 if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue.  Print this one immediately
     2092                if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue. Print this one immediately
    20952093                        wp_print_styles( $handle );
    20962094                else // Add to style queue
    … …  
    21002098
    21012099        echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );
    2102         if ( is_rtl() )
     2100        if ( function_exists( 'is_rtl' ) && is_rtl() )
    21032101                echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
    21042102}
    … …  
    21082106 *
    21092107 * If any of the settings need to be changed, this can be done with another js
    2110  * file similar to media-upload.js and theme-preview.js. That file should
     2108 * file similar to media-upload.js. That file should
    21112109 * require array('thickbox') to ensure it is loaded after.
    21122110 *
    … …  
    22842282        return $result;
    22852283}
    2286 
    2287 ?>
Note: See TracChangeset for help on using the changeset viewer.