Make WordPress Core

Changeset 12488


Ignore:
Timestamp:
12/22/2009 03:57:33 PM (15 years ago)
Author:
westi
Message:

Add some hooks to wp-app.php to allow a plugin to extend the data returned. Fixes #8826 props znarfor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r12102 r12488  
    10931093        $last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page;
    10941094        $self_page = $page > 1 ? $page : NULL;
    1095 ?><feed xmlns="<?php echo $this->ATOM_NS ?>" xmlns:app="<?php echo $this->ATOMPUB_NS ?>" xml:lang="<?php echo get_option('rss_language'); ?>">
     1095?><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'); ?> >
    10961096<id><?php $this->the_entries_url() ?></id>
    10971097<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>
     
    11091109<rights type="text">Copyright <?php echo date('Y'); ?></rights>
    11101110<?php the_generator( 'atom' ); ?>
     1111<?php do_action('app_head'); ?>
    11111112<?php if ( have_posts() ) {
    11121113            while ( have_posts() ) {
     
    11961197<?php list($content_type, $content) = prep_atom_text_construct(get_the_excerpt()); ?>
    11971198    <summary type="<?php echo $content_type ?>"><?php echo $content ?></summary>
     1199    <?php do_action('app_entry'); ?>
    11981200</entry>
    11991201<?php }
Note: See TracChangeset for help on using the changeset viewer.