Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#6854 closed enhancement (fixed)

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

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


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 16 years ago.
Patch to add plugin hook in populate_options()

Download all attachments as: .zip

Change History (4)

16 years ago

Patch to add plugin hook in populate_options()

#1 @ryan
16 years ago

  • Owner changed from anonymous to ryan

#2 @Viper007Bond
16 years ago

  • Version set to 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
16 years ago

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

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

Note: See TracTickets for help on using tickets.