Make WordPress Core


Ignore:
Timestamp:
02/20/2010 09:09:49 PM (15 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/press-this.php

    r12789 r13256  
    400400                    jQuery('#extra-fields').show();
    401401                }
    402                 jQuery('#extra-fields').before('<div id="waiting"><img src="images/wpspin_light.gif" alt="" /> <?php echo esc_js( __( 'Loading...' ) ); ?></div>');
     402                jQuery('#extra-fields').before('<div id="waiting"><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <?php echo esc_js( __( 'Loading...' ) ); ?></div>');
    403403
    404404                if(photostorage == false) {
     
    476476                            <br /><br /><input class="button-primary" type="submit" name="review" value="<?php esc_attr_e('Submit for Review') ?>" id="review" />
    477477                        <?php } ?>
    478                         <img src="images/wpspin_light.gif" alt="" id="saving" style="display:none;" />
     478                        <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" id="saving" style="display:none;" />
    479479                    </p>
    480480                </div>
     
    548548                <li id="photo_button">
    549549                    Add: <?php if ( current_user_can('upload_files') ) { ?><a title="<?php _e('Insert an Image'); ?>" href="#">
    550 <img alt="<?php _e('Insert an Image'); ?>" src="images/media-button-image.gif"/></a>
     550<img alt="<?php _e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif' ) ); ?>"/></a>
    551551                    <?php } ?>
    552552                </li>
    553553                <li id="video_button">
    554                     <a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a>
     554                    <a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif' ) ); ?>"/></a>
    555555                </li>
    556556                <?php if ( user_can_richedit() ) { ?>
Note: See TracChangeset for help on using the changeset viewer.