Fix feature pointer RTL placement.

props SergeyBiryukov, ocean90.
fixes #27778.


git-svn-id: https://develop.svn.wordpress.org/trunk@28107 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-04-13 23:59:01 +00:00
parent d2e679179b
commit c43b8b063d
2 changed files with 11 additions and 5 deletions

View File

@@ -1978,13 +1978,13 @@ final class WP_Internal_Pointers {
if ( 'themes' === get_current_screen()->id ) {
$selector = '.theme.active .customize';
$position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' );
$position = array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center', 'my' => is_rtl() ? 'right-13px' : '' );
} else {
$selector = 'a[href="customize.php"]';
if ( is_rtl() ) {
$position = array( 'edge' => 'right', 'align' => 'center-8px', 'my' => 'right-5px' );
$position = array( 'edge' => 'right', 'align' => 'center', 'my' => 'right-5px' );
} else {
$position = array( 'edge' => 'left', 'align' => 'center-8px', 'my' => 'left-5px' );
$position = array( 'edge' => 'left', 'align' => 'center', 'my' => 'left-5px' );
}
}