Ticket #47177: 47177.patch
File 47177.patch, 1.2 KB (added by , 22 months ago) |
---|
-
src/wp-includes/general-template.php
217 217 * in 5.2.0. Then we deal with the $args array and cast its defaults. 218 218 */ 219 219 $echo = true; 220 if ( false === $args) {220 if ( false === boolval( $args ) ) { 221 221 $echo = false; 222 222 } 223 223 … … 774 774 $output = $wp_version; 775 775 break; 776 776 case 'language': 777 /* translators: Translate this to the correct language tag for your locale, 777 /* 778 translators: Translate this to the correct language tag for your locale, 778 779 * see https://www.w3.org/International/articles/language-tags/ for reference. 779 780 * Do not translate into your own language. 780 781 */ … … 2092 2093 } elseif ( ! empty( $w ) ) { 2093 2094 // We need to get the month from MySQL 2094 2095 $thisyear = (int) substr( $m, 0, 4 ); 2095 // it seems MySQL's weeks disagree with PHP's2096 // it seems MySQL's weeks disagree with PHP's 2096 2097 $d = ( ( $w - 1 ) * 7 ) + 6; 2097 2098 $thismonth = $wpdb->get_var( "SELECT DATE_FORMAT((DATE_ADD('{$thisyear}0101', INTERVAL $d DAY) ), '%m')" ); 2098 2099 } elseif ( ! empty( $m ) ) {