Make WordPress Core


Ignore:
Timestamp:
05/31/2010 06:33:46 AM (15 years ago)
Author:
markjaquith
Message:

Add ?ver=DATE query strings to all images that changed since 2.9, to expire browser cache. Bump versions on all CSS/JS files modified in that process. fixes #13562.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r14987 r15072  
    365365
    366366    if ( $do_image )
    367         $out .= _media_button(__('Add an Image'), 'images/media-button-image.gif', 'image');
     367        $out .= _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image');
    368368    if ( $do_video )
    369         $out .= _media_button(__('Add Video'), 'images/media-button-video.gif', 'video');
     369        $out .= _media_button(__('Add Video'), 'images/media-button-video.gif?ver=20100531', 'video');
    370370    if ( $do_audio )
    371         $out .= _media_button(__('Add Audio'), 'images/media-button-music.gif', 'audio');
    372 
    373     $out .= _media_button(__('Add Media'), 'images/media-button-other.gif', 'media');
     371        $out .= _media_button(__('Add Audio'), 'images/media-button-music.gif?ver=20100531', 'audio');
     372
     373    $out .= _media_button(__('Add Media'), 'images/media-button-other.gif?ver=20100531', 'media');
    374374
    375375    $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
     
    14521452            button_width: "132",
    14531453            button_text_top_padding: 3,
    1454             button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
     1454            button_image_url: '<?php echo includes_url('images/upload.png?ver=20100531'); ?>',
    14551455            button_placeholder_id: "flash-browse-button",
    14561456            upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
Note: See TracChangeset for help on using the changeset viewer.