Ticket #38871: 38871.patch
File 38871.patch, 2.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/user-edit.php
295 295 'selected' => $user_locale, 296 296 'languages' => $languages, 297 297 'show_available_translations' => false, 298 'show_ site_locale_default' => true298 'show_option_site_default' => true 299 299 ) ); 300 300 ?> 301 301 </td> -
src/wp-includes/l10n.php
1058 1058 * 1059 1059 * @since 4.0.0 1060 1060 * @since 4.3.0 Introduced the `echo` argument. 1061 * @since 4.7.0 Introduced the `show_ site_locale_default` argument.1061 * @since 4.7.0 Introduced the `show_option_site_default` argument. 1062 1062 * 1063 1063 * @see get_available_languages() 1064 1064 * @see wp_get_available_translations() … … 1076 1076 * @type bool|int $echo Whether to echo the generated markup. Accepts 0, 1, or their 1077 1077 * boolean equivalents. Default 1. 1078 1078 * @type bool $show_available_translations Whether to show available translations. Default true. 1079 * @type bool $show_ site_locale_default Whether to show an option to fall back to the site's locale. Default false.1079 * @type bool $show_option_site_default Whether to show an option to fall back to the site's locale. Default false. 1080 1080 * } 1081 1081 * @return string HTML content 1082 1082 */ … … 1090 1090 'selected' => '', 1091 1091 'echo' => 1, 1092 1092 'show_available_translations' => true, 1093 'show_ site_locale_default' => false,1093 'show_option_site_default' => false, 1094 1094 ) ); 1095 1095 1096 1096 // English (United States) uses an empty string for the value attribute. … … 1141 1141 $structure[] = '<optgroup label="' . esc_attr_x( 'Installed', 'translations' ) . '">'; 1142 1142 } 1143 1143 1144 if ( $args['show_ site_locale_default'] ) {1144 if ( $args['show_option_site_default'] ) { 1145 1145 $structure[] = sprintf( 1146 1146 '<option value="site-default" data-installed="1"%s>%s</option>', 1147 1147 selected( 'site-default', $args['selected'], false ),