Make WordPress Core


Ignore:
Timestamp:
02/20/2010 09:09:49 PM (14 years ago)
Author:
nacin
Message:

Use admin_url() for images in wp-admin, to allow for filtering. Props mdawaffe, see #12300

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/livejournal.php

    r12789 r13256  
    969969                    if ( jQuery( '#<?php echo $id ?>' ).length ) {
    970970                        jQuery( "#<?php echo $id ?> input[type='submit']" ).hide();
    971                         str = '<?php _e( "Continuing&#8230;" ) ?> <img src="images/wpspin_light.gif" alt="" id="processing" align="top" />';
     971                        str = '<?php _e( "Continuing&#8230;" ) ?> <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" id="processing" align="top" />';
    972972                        jQuery( '#<?php echo $msg ?>' ).html( str );
    973973                        jQuery( '#<?php echo $id ?>' ).submit();
     
    998998                        jQuery( "#<?php echo $id ?> input[type='submit']" ).hide();
    999999                        jQuery.ajaxSetup({'timeout':3600000});
    1000                         str = '<?php _e( "Processing next batch." ) ?> <img src="images/wpspin_light.gif" alt="" id="processing" align="top" />';
     1000                        str = '<?php _e( "Processing next batch." ) ?> <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" id="processing" align="top" />';
    10011001                        jQuery( '#<?php echo $msg ?>' ).html( str );
    10021002                        jQuery('#ljapi-status').load(ajaxurl, {'action':'lj-importer',
Note: See TracChangeset for help on using the changeset viewer.