Make WordPress Core

Changeset 19784 for trunk/wp-app.php


Ignore:
Timestamp:
01/29/2012 07:56:33 PM (14 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r19712 r19784  
    10781078        $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? null : (int) $last_page;
    10791079        $self_page = $page > 1 ? $page : null;
    1080 ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>" <?php do_action('app_ns'); ?> >
     1080?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php bloginfo_rss( 'language' ); ?>" <?php do_action('app_ns'); ?> >
    10811081<id><?php $this->the_entries_url() ?></id>
    10821082<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
     
    11511151    function echo_entry() { ?>
    11521152<entry xmlns="<?php echo $this->ATOM_NS ?>"
    1153        xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>">
     1153       xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php bloginfo_rss( 'language' ); ?>">
    11541154    <id><?php the_guid( $GLOBALS['post']->ID ); ?></id>
    11551155<?php list($content_type, $content) = prep_atom_text_construct(get_the_title()); ?>
Note: See TracChangeset for help on using the changeset viewer.