Ticket #13440 (closed task (blessed): fixed)

Opened 22 months ago

Last modified 3 weeks ago

rss_language option should be blog language

Reported by: Lazy79 Owned by: nacin
Priority: low Milestone: 3.4
Component: I18N Version:
Severity: normal Keywords: has-patch
Cc: r_a_m_i@…

Description

the rss_language option in the database should automaticaly be updated to en (std.) or the language in wp-config.php

i know its not a important deal but there a situations where it might be good to have rss_language the language slug which the blog uses.

Attachments

13440.diff Download (7.7 KB) - added by nacin 4 weeks ago.

Change History

  • Milestone changed from 3.0 to Future Release

rss_language is set to en by default upon install.

If you want to change it then all the API is there to do it and you could use the pre_option_ filters in get_option in a plugin to return the value configured in wp-config.php if you want.

I don't think we need to do anything in core for 3.0 for this as it has been like this for a long time.

See also: #5517 and #6854

  • Keywords rss_language removed
  • Type changed from feature request to task (blessed)
  • Milestone changed from Future Release to 3.4

Accepting this for inclusion.

I am thinking we just kill off rss_language and have it use get_bloginfo( 'language' ) which in turns relies on get_locale(). This is exactly the value that language_attributes() uses.

  • Keywords has-patch added
  • Component changed from General to I18N

nacin4 weeks ago

  • Cc r_a_m_i@… added

comment:6   ryan3 weeks ago

Using the same thing language_attributes( ) uses seems sanest. Patch looks good.

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

In [19784]:

Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517.

Note: See TracTickets for help on using tickets.