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

See #37699.


git-svn-id: https://develop.svn.wordpress.org/trunk@38459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2016-08-31 05:48:49 +00:00
parent 2078dda129
commit 1825eff382
22 changed files with 51 additions and 107 deletions
+1 -5
View File
@@ -4927,12 +4927,8 @@ function print_emoji_detection_script() {
* @ignore
* @since 4.6.0
* @access private
*
* @global string $wp_version WordPress version string.
*/
function _print_emoji_detection_script() {
global $wp_version;
$settings = array(
/**
* Filters the URL where emoji png images are hosted.
@@ -4971,7 +4967,7 @@ function _print_emoji_detection_script() {
'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ),
);
$version = 'ver=' . $wp_version;
$version = 'ver=' . get_bloginfo( 'version' );
if ( SCRIPT_DEBUG ) {
$settings['source'] = array(