WordPress.org

Make WordPress Core

Opened 11 months ago

#39673 new enhancement

wp_dropdown_languages() shows wrong list of installed languages, when 'languages' is empty

Reported by: lhrng Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: I18N Keywords:
Focuses: Cc:

Description

wp_dropdown_languages() shows wrong list of installed languages, when 'languages' is empty. That might be intentionally, but is still very confusing, because the values shown in the dropdown are wrong.

Improvement:


        if ( empty( $args['languages'] ) ) {
                $args['languages'] = get_available_languages();
        }


Change History (0)

Note: See TracTickets for help on using tickets.