Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#6854 closed enhancement (fixed)

Add plugin hook in schema.php to allow localizing default options

Reported by: RanYanivHartstein Owned by: ryan
Priority: normal Milestone: 2.6
Component: I18N Version: 2.5.1
Severity: normal Keywords: has-patch tested
Cc: Focuses:

Description

The populate_options() function in schema.php sets several default options that are locale-specific, such as the first day of the week, feed language and possibly timezone (depending on your locale). Adding a plugin hook to populate_options() will allow overriding these defaults in the locale files.

I included a patch to add a plugin hook to populate_options(), I tested it with 2.5.1

Attachments (1)

schema.php.diff​ (578 bytes ) - added by RanYanivHartstein 18 years ago.
Patch to add plugin hook in populate_options()

Download all attachments as: .zip

Change History (4)

@RanYanivHartstein
18 years ago

Patch to add plugin hook in populate_options()

#1 @ryan
18 years ago

  • Owner changed from anonymous to ryan

#2 @Viper007Bond
18 years ago

  • Version → 2.5.1

Technically, you could do this via the pre_ hooks for add/update, but it'd be a lot more work.

#3 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [7848]) Add populate_options action. Props RanYanivHartstein. fixes #6854

Note: See TracTickets for help on using tickets.