Skip to content

Commit

Permalink
Display file descriptions in theme editor in current locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Oct 9, 2023
1 parent 2239cd9 commit 013639a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/php/Requirements.php
Expand Up @@ -70,6 +70,9 @@ public function __construct( Settings $settings, AdminNotices $admin_notices, WP
*/
global $wp_file_descriptions;

$admin_locale = get_locale();
load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );

require_once ABSPATH . 'wp-admin/includes/file.php';
}
// @codeCoverageIgnoreEnd
Expand Down

0 comments on commit 013639a

Please sign in to comment.