Make WordPress Core

Changeset 4465 for trunk/wp-atom.php


Ignore:
Timestamp:
11/14/2006 01:24:27 AM (18 years ago)
Author:
ryan
Message:

Don't use deprecated start_wp(). Props westi. fixes #3188

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r4144 r4465  
    2424    <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
    2525    <?php do_action('atom_head'); ?>
    26     <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     26    <?php while (have_posts()) : the_post(); ?>
    2727    <entry>
    2828        <author>
     
    4242<?php do_action('atom_entry'); ?>
    4343    </entry>
    44     <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
     44    <?php endwhile ; ?>
    4545</feed>
Note: See TracChangeset for help on using the changeset viewer.