Make WordPress Core

Ticket #35554: major.minor.diff

File major.minor.diff, 1.3 KB (added by dd32, 8 years ago)
  • src/wp-includes/general-template.php

    function get_bloginfo( $show = '', $filt 
    677677                        $output = get_template_directory_uri();
    678678                        break;
    679679                case 'admin_email':
    680680                        $output = get_option('admin_email');
    681681                        break;
    682682                case 'charset':
    683683                        $output = get_option('blog_charset');
    684684                        if ('' == $output) $output = 'UTF-8';
    685685                        break;
    686686                case 'html_type' :
    687687                        $output = get_option('html_type');
    688688                        break;
    689689                case 'version':
    690690                        global $wp_version;
    691691                        $output = $wp_version;
     692                        if ( 'display' == $filter ) {
     693                                $output = (string)floatval( $output );
     694                        }
    692695                        break;
    693696                case 'language':
    694697                        $output = get_locale();
    695698                        $output = str_replace('_', '-', $output);
    696699                        break;
    697700                case 'text_direction':
    698701                        _deprecated_argument( __FUNCTION__, '2.2', sprintf(
    699702                                /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */
    700703                                __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ),
    701704                                '<code>' . $show . '</code>',
    702705                                '<code>bloginfo()</code>',
    703706                                '<code>is_rtl()</code>'
    704707                        ) );
    705708                        if ( function_exists( 'is_rtl' ) ) {
    706709                                $output = is_rtl() ? 'rtl' : 'ltr';