Ticket #35554: major.minor.diff
File major.minor.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-includes/general-template.php
function get_bloginfo( $show = '', $filt 677 677 $output = get_template_directory_uri(); 678 678 break; 679 679 case 'admin_email': 680 680 $output = get_option('admin_email'); 681 681 break; 682 682 case 'charset': 683 683 $output = get_option('blog_charset'); 684 684 if ('' == $output) $output = 'UTF-8'; 685 685 break; 686 686 case 'html_type' : 687 687 $output = get_option('html_type'); 688 688 break; 689 689 case 'version': 690 690 global $wp_version; 691 691 $output = $wp_version; 692 if ( 'display' == $filter ) { 693 $output = (string)floatval( $output ); 694 } 692 695 break; 693 696 case 'language': 694 697 $output = get_locale(); 695 698 $output = str_replace('_', '-', $output); 696 699 break; 697 700 case 'text_direction': 698 701 _deprecated_argument( __FUNCTION__, '2.2', sprintf( 699 702 /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */ 700 703 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ), 701 704 '<code>' . $show . '</code>', 702 705 '<code>bloginfo()</code>', 703 706 '<code>is_rtl()</code>' 704 707 ) ); 705 708 if ( function_exists( 'is_rtl' ) ) { 706 709 $output = is_rtl() ? 'rtl' : 'ltr';