WordPress.org

Make WordPress Core

Ticket #17149: atom-author.diff

File atom-author.diff, 632 bytes (added by niallkennedy, 3 years ago)

Allow custom author elements such as email by adding an action

  • wp-includes/feed-atom.php

     
    3232                        <name><?php the_author() ?></name> 
    3333                        <?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?> 
    3434                        <uri><?php the_author_meta('url')?></uri> 
    35                         <?php endif; ?> 
     35                        <?php endif; 
     36                        do_action('atom_author'); ?> 
    3637                </author> 
    3738                <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title> 
    3839                <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />