Skip to content

Commit

Permalink
Add JS var isRtl to admin-header and remove unused JS localized vars …
Browse files Browse the repository at this point in the history
…for nav-menu. see #13525.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed May 27, 2010
1 parent a6e1307 commit 00192e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion wp-admin/admin-header.php
Expand Up @@ -45,7 +45,8 @@
typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>',
adminpage = '<?php echo $admin_body_class; ?>',
thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>';
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
isRtl = <?php echo (int) is_rtl(); ?>;
//]]>
</script>
<?php
Expand Down
2 changes: 0 additions & 2 deletions wp-includes/script-loader.php
Expand Up @@ -387,8 +387,6 @@ function wp_default_scripts( &$scripts ) {
// Custom Navigation
$scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", false, '20100527' );
$scripts->localize( 'nav-menu', 'navMenuL10n', array(
'home' => _x('Home', 'nav menu home label'),
'homeurl' => home_url('/'),
'custom' => _x('Custom', 'menu nav item type'),
'thickbox' => _x('Edit Menu Item', 'Thickbox Title'),
'edit' => _x('Edit', 'menu item edit text'),
Expand Down

0 comments on commit 00192e2

Please sign in to comment.