Make WordPress Core


Ignore:
Timestamp:
08/31/2016 05:48:49 AM (8 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/formatting.php

    r38359 r38459  
    49284928 * @since 4.6.0
    49294929 * @access private
    4930  *
    4931  * @global string $wp_version WordPress version string.
    49324930 */
    49334931function _print_emoji_detection_script() {
    4934     global $wp_version;
    4935 
    49364932    $settings = array(
    49374933        /**
     
    49724968    );
    49734969
    4974     $version = 'ver=' . $wp_version;
     4970    $version = 'ver=' . get_bloginfo( 'version' );
    49754971
    49764972    if ( SCRIPT_DEBUG ) {
Note: See TracChangeset for help on using the changeset viewer.