WordPress.org

Make WordPress Core

Ticket #8826: wp-app-hooks.diff

File wp-app-hooks.diff, 1.5 KB (added by znarfor, 6 years ago)
  • wp-app.php

     
    10901090                $prev_page = ($page - 1) < 1 ? NULL : $page - 1; 
    10911091                $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page; 
    10921092                $self_page = $page > 1 ? $page : NULL; 
    1093 ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>"> 
     1093?><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('atom_ns'); ?>> 
    10941094<id><?php $this->the_entries_url() ?></id> 
    10951095<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated> 
    10961096<title type="text"><?php bloginfo_rss('name') ?></title> 
     
    11061106<link rel="self" type="<?php echo $this->ATOM_CONTENT_TYPE ?>" href="<?php $this->the_entries_url($self_page) ?>" /> 
    11071107<rights type="text">Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></rights> 
    11081108<?php the_generator( 'atom' ); ?> 
     1109<?php do_action('atom_head'); ?> 
    11091110<?php if ( have_posts() ) { 
    11101111                        while ( have_posts() ) { 
    11111112                                the_post(); 
     
    11941195<?php } ?> 
    11951196<?php list($content_type, $content) = prep_atom_text_construct(get_the_excerpt()); ?> 
    11961197        <summary type="<?php echo $content_type ?>"><?php echo $content ?></summary> 
     1198        <?php do_action('atom_entry'); ?> 
    11971199</entry> 
    11981200<?php } 
    11991201