Changeset 39331
- Timestamp:
- 11/21/2016 04:14:01 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-edit.php
r39169 r39331 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 ?> -
trunk/src/wp-includes/l10n.php
r39330 r39331 1109 1109 * @since 4.0.0 1110 1110 * @since 4.3.0 Introduced the `echo` argument. 1111 * @since 4.7.0 Introduced the `show_ site_locale_default` argument.1111 * @since 4.7.0 Introduced the `show_option_site_default` argument. 1112 1112 * 1113 1113 * @see get_available_languages() … … 1127 1127 * boolean equivalents. Default 1. 1128 1128 * @type bool $show_available_translations Whether to show available translations. Default true. 1129 * @type bool $show_ site_locale_default Whether to show an option to fall back to the site's locale. Default false.1129 * @type bool $show_option_site_default Whether to show an option to fall back to the site's locale. Default false. 1130 1130 * } 1131 1131 * @return string HTML content … … 1141 1141 'echo' => 1, 1142 1142 'show_available_translations' => true, 1143 'show_ site_locale_default' => false,1143 'show_option_site_default' => false, 1144 1144 ) ); 1145 1145 … … 1192 1192 } 1193 1193 1194 if ( $args['show_ site_locale_default'] ) {1194 if ( $args['show_option_site_default'] ) { 1195 1195 $structure[] = sprintf( 1196 1196 '<option value="site-default" data-installed="1"%s>%s</option>', -
trunk/tests/phpunit/tests/l10n.php
r39169 r39331 111 111 'selected' => 'de_DE', 112 112 'echo' => false, 113 'show_ site_locale_default' => true,113 'show_option_site_default' => true, 114 114 ); 115 115 $actual = wp_dropdown_languages( $args );
Note: See TracChangeset
for help on using the changeset viewer.