Changeset 14360 for trunk/wp-includes/general-template.php
- Timestamp:
- 05/03/2010 05:49:19 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r14347 r14360 399 399 case 'home' : // DEPRECATED 400 400 case 'siteurl' : // DEPRECATED 401 _deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>% 1$s</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>%2$s</code> option instead.'), $show, 'url') );401 _deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> option instead.' ), 'url' ) ); 402 402 case 'url' : 403 403 $output = home_url(); … … 459 459 break; 460 460 case 'text_direction': 461 global $wp_locale; 462 if ( isset( $wp_locale ) ) 463 $output = $wp_locale->text_direction; 464 else 465 $output = 'ltr'; 461 //_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> function instead.' ), 'is_rtl()' ) ); 462 return function_exists( 'is_rtl' ) ? is_rtl() : 'ltr'; 466 463 break; 467 464 case 'name': … … 1875 1872 $output = ''; 1876 1873 1877 if ( $dir = get_bloginfo('text_direction') )1878 $attributes[] = "dir=\"$dir\"";1874 if ( function_exists( 'is_rtl' ) ) 1875 $attributes[] = 'dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"'; 1879 1876 1880 1877 if ( $lang = get_bloginfo('language') ) { … … 2113 2110 2114 2111 echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( $file ) . "' type='text/css' />\n", $file ); 2115 if ( 'rtl' == get_bloginfo( 'text_direction') )2112 if ( is_rtl() ) 2116 2113 echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( "$file-rtl" ) . "' type='text/css' />\n", "$file-rtl" ); 2117 2114 }
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)