WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13206 closed enhancement (fixed)

Create a new function is_rtl to simplify checking for text direction

Reported by: sivel Owned by: 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
7 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
7 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
7 years ago

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

Note: See TracTickets for help on using tickets.