Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13023 closed defect (bug) (fixed)

Use get_available_languages() in options-general.php

Reported by: ryan Owned by: nbachiyski
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: I18N Keywords: has-patch
Focuses: Cc:


The language picker in options-general.php should use get_available_languages(). See ms-edit.php and ms-options.php for example usage.

Attachments (1)

13023.diff (1011 bytes) - added by sivel 6 years ago.

Download all attachments as: .zip

Change History (5)

#1 @PeteMall
6 years ago

  • Cc pete@… added

6 years ago

#2 @sivel
6 years ago

  • Component changed from General to i18n
  • Keywords has-patch added
  • Owner set to nbachiyski
  • Version set to 3.0

Patch switched options-general.php to use get_available_languages.

#3 @nbachiyski
6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14416]) Use get_available_languages() in options-general.php instead of manually looping on the language dir. Props sivel. Fixes #13023

#4 @nbachiyski
6 years ago

(In [14417]) Refactor get_available_languages() to use glob() instead of *dir functions. See #13023

Note: See TracTickets for help on using tickets.