General: use get_bloginfo( 'version' ) instead of global $wp_version in several locations - excluding those locations which reload version.php mid-flight.
See #37699. Built from https://develop.svn.wordpress.org/trunk@38459 git-svn-id: http://core.svn.wordpress.org/trunk@38400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3810,12 +3810,10 @@ function attachment_url_to_postid( $url ) {
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @global string $wp_version
|
||||
*
|
||||
* @return array The relevant CSS file URLs.
|
||||
*/
|
||||
function wpview_media_sandbox_styles() {
|
||||
$version = 'ver=' . $GLOBALS['wp_version'];
|
||||
$version = 'ver=' . get_bloginfo( 'version' );
|
||||
$mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
|
||||
$wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user