WordPress.org

Make WordPress Core

Changeset 14646


Ignore:
Timestamp:
05/14/10 21:22:14 (5 years ago)
Author:
westi
Message:

Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206.

File:
1 edited

Legend:

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

    r14614 r14646  
    464464        case 'text_direction': 
    465465            //_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()'  ) ); 
    466             return function_exists( 'is_rtl' ) ? is_rtl() : 'ltr'; 
     466            if ( function_exists( 'is_rtl' ) ) { 
     467                $output = is_rtl() ? 'rtl' : 'ltr'; 
     468            } else { 
     469                $output = 'ltr'; 
     470            } 
    467471            break; 
    468472        case 'name': 
Note: See TracChangeset for help on using the changeset viewer.