WordPress.org

Make WordPress Core

Ticket #15639: rtl-for-iframe.15636.diff

File rtl-for-iframe.15636.diff, 967 bytes (added by filosofo, 3 years ago)
  • wp-admin/includes/media.php

     
    319319//<![CDATA[ 
    320320addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 
    321321var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'}; 
    322 var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup'; 
     322var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', 
     323isRtl = <?php echo (int) is_rtl(); ?>; 
    323324//]]> 
    324325</script> 
    325326<?php