<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[19784] trunk: Use the site's locale for the feed language.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/19784">19784</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2012-01-29 19:56:33 +0000 (Sun, 29 Jan 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes <a href="http://core.trac.wordpress.org/ticket/13440">#13440</a>. see <a href="http://core.trac.wordpress.org/ticket/5517">#5517</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesexportphp">trunk/wp-admin/includes/export.php</a></li>
<li><a href="#trunkwpadminincludesschemaphp">trunk/wp-admin/includes/schema.php</a></li>
<li><a href="#trunkwpappphp">trunk/wp-app.php</a></li>
<li><a href="#trunkwpincludesfeedatomcommentsphp">trunk/wp-includes/feed-atom-comments.php</a></li>
<li><a href="#trunkwpincludesfeedatomphp">trunk/wp-includes/feed-atom.php</a></li>
<li><a href="#trunkwpincludesfeedrssphp">trunk/wp-includes/feed-rss.php</a></li>
<li><a href="#trunkwpincludesfeedrss2php">trunk/wp-includes/feed-rss2.php</a></li>
<li><a href="#trunkwpincludesversionphp">trunk/wp-includes/version.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesexportphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/export.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/export.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-admin/includes/export.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -331,7 +331,7 @@
</span><span class="cx">         &lt;link&gt;&lt;?php bloginfo_rss( 'url' ); ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php bloginfo_rss( 'description' ); ?&gt;&lt;/description&gt;
</span><span class="cx">         &lt;pubDate&gt;&lt;?php echo date( 'D, d M Y H:i:s +0000' ); ?&gt;&lt;/pubDate&gt;
</span><del>-        &lt;language&gt;&lt;?php echo get_option( 'rss_language' ); ?&gt;&lt;/language&gt;
</del><ins>+        &lt;language&gt;&lt;?php bloginfo_rss( 'language' ); ?&gt;&lt;/language&gt;
</ins><span class="cx">         &lt;wp:wxr_version&gt;&lt;?php echo WXR_VERSION; ?&gt;&lt;/wp:wxr_version&gt;
</span><span class="cx">         &lt;wp:base_site_url&gt;&lt;?php echo wxr_site_url(); ?&gt;&lt;/wp:base_site_url&gt;
</span><span class="cx">         &lt;wp:base_blog_url&gt;&lt;?php bloginfo_rss( 'url' ); ?&gt;&lt;/wp:base_blog_url&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesschemaphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/schema.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/schema.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-admin/includes/schema.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -409,7 +409,6 @@
</span><span class="cx">         'comment_whitelist' =&gt; 1,
</span><span class="cx">         'blacklist_keys' =&gt; '',
</span><span class="cx">         'comment_registration' =&gt; 0,
</span><del>-        'rss_language' =&gt; 'en',
</del><span class="cx">         'html_type' =&gt; 'text/html',
</span><span class="cx"> 
</span><span class="cx">         // 1.5.1
</span><span class="lines">@@ -524,7 +523,7 @@
</span><span class="cx">         if ( !__get_option('home') ) update_option('home', $guessurl);
</span><span class="cx"> 
</span><span class="cx">         // Delete unused options
</span><del>-        $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'ne
 w_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show');
</del><ins>+        $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new
 _users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show', 'rss_language');
</ins><span class="cx">         foreach ( $unusedoptions as $option )
</span><span class="cx">                 delete_option($option);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpappphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-app.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-app.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-app.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -1077,7 +1077,7 @@
</span><span class="cx">                 $prev_page = ($page - 1) &lt; 1 ? null : $page - 1;
</span><span class="cx">                 $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? null : (int) $last_page;
</span><span class="cx">                 $self_page = $page &gt; 1 ? $page : null;
</span><del>-?&gt;&lt;feed xmlns=&quot;&lt;?php echo $this-&gt;ATOM_NS ?&gt;&quot; xmlns:app=&quot;&lt;?php echo $this-&gt;ATOMPUB_NS ?&gt;&quot; xml:lang=&quot;&lt;?php echo get_option('rss_language'); ?&gt;&quot; &lt;?php do_action('app_ns'); ?&gt; &gt;
</del><ins>+?&gt;&lt;feed xmlns=&quot;&lt;?php echo $this-&gt;ATOM_NS ?&gt;&quot; xmlns:app=&quot;&lt;?php echo $this-&gt;ATOMPUB_NS ?&gt;&quot; xml:lang=&quot;&lt;?php bloginfo_rss( 'language' ); ?&gt;&quot; &lt;?php do_action('app_ns'); ?&gt; &gt;
</ins><span class="cx"> &lt;id&gt;&lt;?php $this-&gt;the_entries_url() ?&gt;&lt;/id&gt;
</span><span class="cx"> &lt;updated&gt;&lt;?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?&gt;&lt;/updated&gt;
</span><span class="cx"> &lt;title type=&quot;text&quot;&gt;&lt;?php bloginfo_rss('name') ?&gt;&lt;/title&gt;
</span><span class="lines">@@ -1150,7 +1150,7 @@
</span><span class="cx">          */
</span><span class="cx">         function echo_entry() { ?&gt;
</span><span class="cx"> &lt;entry xmlns=&quot;&lt;?php echo $this-&gt;ATOM_NS ?&gt;&quot;
</span><del>-       xmlns:app=&quot;&lt;?php echo $this-&gt;ATOMPUB_NS ?&gt;&quot; xml:lang=&quot;&lt;?php echo get_option('rss_language'); ?&gt;&quot;&gt;
</del><ins>+       xmlns:app=&quot;&lt;?php echo $this-&gt;ATOMPUB_NS ?&gt;&quot; xml:lang=&quot;&lt;?php bloginfo_rss( 'language' ); ?&gt;&quot;&gt;
</ins><span class="cx">         &lt;id&gt;&lt;?php the_guid( $GLOBALS['post']-&gt;ID ); ?&gt;&lt;/id&gt;
</span><span class="cx"> &lt;?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?&gt;
</span><span class="cx">         &lt;title type=&quot;&lt;?php echo $content_type ?&gt;&quot;&gt;&lt;?php echo $content ?&gt;&lt;/title&gt;
</span></span></pre></div>
<a id="trunkwpincludesfeedatomcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/feed-atom-comments.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/feed-atom-comments.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-includes/feed-atom-comments.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;feed
</span><span class="cx">         xmlns=&quot;http://www.w3.org/2005/Atom&quot;
</span><del>-        xml:lang=&quot;&lt;?php echo get_option('rss_language'); ?&gt;&quot;
</del><ins>+        xml:lang=&quot;&lt;?php bloginfo_rss( 'language' ); ?&gt;&quot;
</ins><span class="cx">         xmlns:thr=&quot;http://purl.org/syndication/thread/1.0&quot;
</span><span class="cx">         &lt;?php do_action('atom_ns'); do_action('atom_comments_ns'); ?&gt;
</span><span class="cx"> &gt;
</span></span></pre></div>
<a id="trunkwpincludesfeedatomphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/feed-atom.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/feed-atom.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-includes/feed-atom.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -12,7 +12,7 @@
</span><span class="cx"> &lt;feed
</span><span class="cx">   xmlns=&quot;http://www.w3.org/2005/Atom&quot;
</span><span class="cx">   xmlns:thr=&quot;http://purl.org/syndication/thread/1.0&quot;
</span><del>-  xml:lang=&quot;&lt;?php echo get_option('rss_language'); ?&gt;&quot;
</del><ins>+  xml:lang=&quot;&lt;?php bloginfo_rss( 'language' ); ?&gt;&quot;
</ins><span class="cx">   xml:base=&quot;&lt;?php bloginfo_rss('url') ?&gt;/wp-atom.php&quot;
</span><span class="cx">   &lt;?php do_action('atom_ns'); ?&gt;
</span><span class="cx">  &gt;
</span></span></pre></div>
<a id="trunkwpincludesfeedrssphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/feed-rss.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/feed-rss.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-includes/feed-rss.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">         &lt;description&gt;&lt;?php bloginfo_rss('description') ?&gt;&lt;/description&gt;
</span><span class="cx">         &lt;lastBuildDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?&gt;&lt;/lastBuildDate&gt;
</span><span class="cx">         &lt;docs&gt;http://backend.userland.com/rss092&lt;/docs&gt;
</span><del>-        &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</del><ins>+        &lt;language&gt;&lt;?php bloginfo_rss( 'language' ); ?&gt;&lt;/language&gt;
</ins><span class="cx">         &lt;?php do_action('rss_head'); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php while (have_posts()) : the_post(); ?&gt;
</span></span></pre></div>
<a id="trunkwpincludesfeedrss2php"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/feed-rss2.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/feed-rss2.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-includes/feed-rss2.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">         &lt;link&gt;&lt;?php bloginfo_rss('url') ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php bloginfo_rss(&quot;description&quot;) ?&gt;&lt;/description&gt;
</span><span class="cx">         &lt;lastBuildDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?&gt;&lt;/lastBuildDate&gt;
</span><del>-        &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</del><ins>+        &lt;language&gt;&lt;?php bloginfo_rss( 'language' ); ?&gt;&lt;/language&gt;
</ins><span class="cx">         &lt;sy:updatePeriod&gt;&lt;?php echo apply_filters( 'rss_update_period', 'hourly' ); ?&gt;&lt;/sy:updatePeriod&gt;
</span><span class="cx">         &lt;sy:updateFrequency&gt;&lt;?php echo apply_filters( 'rss_update_frequency', '1' ); ?&gt;&lt;/sy:updateFrequency&gt;
</span><span class="cx">         &lt;?php do_action('rss2_head'); ?&gt;
</span></span></pre></div>
<a id="trunkwpincludesversionphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/version.php (19783 => 19784)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/version.php        2012-01-29 18:47:41 UTC (rev 19783)
+++ trunk/wp-includes/version.php        2012-01-29 19:56:33 UTC (rev 19784)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global int $wp_db_version
</span><span class="cx">  */
</span><del>-$wp_db_version = 19470;
</del><ins>+$wp_db_version = 19784;
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Holds the TinyMCE version
</span></span></pre>
</div>
</div>

</body>
</html>