RSS Language missing

My RSS feed suddenly stopped validating – with:

Sorry

This feed does not validate.

line 16, column 11: language must be an ISO-639 language code: [help]

Looking at the PHP file I see that the language is worked out thus:

<language><?php echo get_option('rss_language'); ?></language>

if you change it to :

<language><?php echo bloginfo_rss( 'language' ); ?></language>

it starts validating again.

  • aecnu
    • WP Unicorn

    Greetings Steve,

    Thank you for bringing this significant issue to our attention.

    I checked and the change was not done on our end as in an update to this plugin or something of this nature.

    Did the feed itself just suddenly stop working or just the validator portion?

    Please advise.

    Cheers, Joe

  • Steve Atty
    • Site Builder, Child of Zeus

    The validator (its running through feedburner) suddenly reported it as an issue. It was before I upgraded to the latest WordPress too. So I’m not sure what is going on – maybe its not been there for a while and its just that Google have tightened up the validator, but looking at the code it looks like all the other tags are coming from bloginfo_rss so I guess its just been missed but until now its not mattered.

  • aecnu
    • WP Unicorn

    Greetings Steve,

    We are under the consensus that we do not know what changed or where but obviously by your evidence it has.

    Thank you for supplying the fix and hopefully any other members that have this issue will find this fix and be able to easily adapt.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.