mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user