Make WordPress Core


Ignore:
Timestamp:
05/07/2013 03:49:20 PM (11 years ago)
Author:
nacin
Message:

Remove manual printing of userSettings as utils.js receives this as inline script data (since 3.5). see #24210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r23567 r24187  
    304304//<![CDATA[
    305305addLoadEvent = 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();}}};
    306 var 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() ?>'};
    307306var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>;
    308307var photostorage = false;
Note: See TracChangeset for help on using the changeset viewer.