WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/31/2016 05:48:49 AM (3 years ago)
Author:
wonderboymusic
Message:

General: use get_bloginfo( 'version' ) instead of global $wp_version in several locations - excluding those locations which reload version.php mid-flight.

See #37699.

File:
1 edited

Legend:

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

    r38437 r38459  
    38113811 * @since 4.0.0
    38123812 *
    3813  * @global string $wp_version
    3814  *
    38153813 * @return array The relevant CSS file URLs.
    38163814 */
    38173815function wpview_media_sandbox_styles() {
    3818     $version = 'ver=' . $GLOBALS['wp_version'];
     3816    $version = 'ver=' . get_bloginfo( 'version' );
    38193817    $mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
    38203818    $wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
Note: See TracChangeset for help on using the changeset viewer.