- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r19528 r20990 1230 1230 } 1231 1231 1232 1233 1232 // See how much we should pad in the beginning 1234 1233 $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins); … … 1748 1747 */ 1749 1748 function 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; 1751 1750 1752 1751 if ( !isset($wp_rich_edit) ) { 1753 1752 $wp_rich_edit = false; 1754 1753 1755 if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users1754 if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users 1756 1755 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 ); 1759 1757 } elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) { 1760 1758 $wp_rich_edit = true; … … 1798 1796 * 1799 1797 * @see wp-includes/class-wp-editor.php 1800 * @since 3.3 1798 * @since 3.3.0 1801 1799 * 1802 1800 * @param string $content Initial content for the editor. … … 2038 2036 array( '#5589aa', '#cfdfe9', '#d1e5ee', '#eff8ff' ) ); 2039 2037 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' ) ); 2041 2039 } 2042 2040 … … 2067 2065 * 'wp_print_styles' action has *not* yet been called, the CSS file will be 2068 2066 * enqueued. If the wp_print_styles action *has* been called, the CSS link will 2069 * be printed. Printing may be forced by passing TRUEas the $force_echo2067 * be printed. Printing may be forced by passing true as the $force_echo 2070 2068 * (second) parameter. 2071 2069 * … … 2081 2079 * @param string $file Optional. Style handle name or file name (without ".css" extension) relative 2082 2080 * 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. 2084 2082 */ 2085 2083 function wp_admin_css( $file = 'wp-admin', $force_echo = false ) { … … 2092 2090 2093 2091 if ( $wp_styles->query( $handle ) ) { 2094 if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue. Print this one immediately2092 if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue. Print this one immediately 2095 2093 wp_print_styles( $handle ); 2096 2094 else // Add to style queue … … 2100 2098 2101 2099 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() ) 2103 2101 echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" ); 2104 2102 } … … 2108 2106 * 2109 2107 * 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 should2108 * file similar to media-upload.js. That file should 2111 2109 * require array('thickbox') to ensure it is loaded after. 2112 2110 * … … 2284 2282 return $result; 2285 2283 } 2286 2287 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)