Ticket #3513: 3513.diff

File 3513.diff, 2.1 KB (added by rob1n, 5 years ago)
  • wp-includes/feed-rss2.php

     
    1010        xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    1111        xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
    1212        xmlns:dc="http://purl.org/dc/elements/1.1/" 
     13        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
    1314        <?php do_action('rss2_ns'); ?> 
    1415> 
    1516 
     
    2021        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 
    2122        <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 
    2223        <language><?php echo get_option('rss_language'); ?></language> 
     24        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
     25        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 
    2326        <?php do_action('rss2_head'); ?> 
    2427        <?php while( have_posts()) : the_post(); ?> 
    2528        <item> 
  • wp-includes/feed-rss2-comments.php

     
    55?> 
    66<!-- generator="wordpress/<?php echo $wp_version ?>" --> 
    77<rss version="2.0"  
    8         xmlns:content="http://purl.org/rss/1.0/modules/content/"> 
     8        xmlns:content="http://purl.org/rss/1.0/modules/content/" 
     9        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 
     10> 
    911<channel> 
    1012        <title><?php 
    1113                if ( is_singular() ) 
     
    1921        <description><?php bloginfo_rss("description") ?></description> 
    2022        <pubDate><?php echo gmdate('r'); ?></pubDate> 
    2123        <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator> 
    22  
     24        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 
     25        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 
    2326<?php  
    2427if ( have_comments() ) : while ( have_comments() ) : the_comment(); 
    2528        $comment_post = get_post($comment->comment_post_ID);