Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#13206 closed enhancement (fixed)

Create a new function is_rtl to simplify checking for text direction

Reported by: sivel's profile sivel Owned by: yoavf's profile yoavf
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: RTL Keywords:
Focuses: Cc:

Description

Based on a session at WordCamp SF nacin mentioned that a function is_rtl may be a nice addition to simplify checking for text direction and raise the support of RTL support in themes and plugins.

Change History (3)

#1 @nacin
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14360]) Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.

#2 @nacin
15 years ago

  • Milestone changed from 3.1 to 3.0

Re-open if there are any issues.

is_rtl() is in locale.php, which means it will become defined rather late in the process -- once it actually becomes accurate. get_bloginfo('text_direction') becomes deprecated.

#3 @westi
15 years ago

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

Note: See TracTickets for help on using tickets.