WordPress.org

Make WordPress Core

Ticket #15561: 15561.001.diff

File 15561.001.diff, 1.2 KB (added by duck_, 3 years ago)
  • wp-admin/press-this.php

     
    320320//<![CDATA[ 
    321321addLoadEvent = 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();}}}; 
    322322var 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() ?>'}; 
    323 var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'press-this'; 
     323var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>; 
    324324var photostorage = false; 
    325325//]]> 
    326326</script> 
     
    330330        do_action('admin_print_scripts'); 
    331331        do_action('admin_head'); 
    332332 
    333         if ( user_can_richedit() ) 
     333        if ( user_can_richedit() ) { 
    334334                wp_tiny_mce( true, array( 'height' => '370' ) ); 
     335                wp_tiny_mce_preload_dialogs();   
     336        } 
    335337?> 
    336338        <script type="text/javascript"> 
    337339        function insert_plain_editor(text) {