Make WordPress Core

Changeset 4465


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

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r4437 r4465  
    158158if ($posts) {
    159159$bgcolor = '';
    160 foreach ($posts as $post) { start_wp();
     160while (have_posts()) : the_post();
    161161add_filter('the_title','wp_specialchars');
    162162$class = ('alternate' == $class) ? '' : 'alternate';
     
    236236    </tr>
    237237<?php
    238 }
     238endwhile;
    239239} else {
    240240?>
  • 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>
  • trunk/wp-content/themes/classic/comments-popup.php

    r4144 r4465  
    22/* Don't remove these lines. */
    33add_filter('comment_text', 'popuplinks');
    4 foreach ($posts as $post) { start_wp();
     4while( have_posts()) : the_post();
    55?>
    66<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    9494
    9595<?php // if you delete this the sky will fall on your head
    96 }
     96endwhile;
    9797?>
    9898
  • trunk/wp-content/themes/default/comments-popup.php

    r4144 r4465  
    22/* Don't remove these lines. */
    33add_filter('comment_text', 'popuplinks');
    4 foreach ($posts as $post) { start_wp();
     4while ( have_posts()) : the_post();
    55?>
    66<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    9494
    9595<?php // if you delete this the sky will fall on your head
    96 }
     96endwhile;
    9797?>
    9898
  • trunk/wp-rss.php

    r4144 r4465  
    2222    <?php do_action('rss_head'); ?>
    2323
    24 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     24<?php while (have_posts()) : the_post(); ?>
    2525    <item>
    2626        <title><?php the_title_rss() ?></title>
     
    3333        <?php do_action('rss_item'); ?>
    3434    </item>
    35 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
     35<?php endwhile; ?>
    3636</channel>
    3737</rss>
  • trunk/wp-rss2.php

    r4184 r4465  
    2828    <language><?php echo get_option('rss_language'); ?></language>
    2929    <?php do_action('rss2_head'); ?>
    30     <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     30    <?php while( have_posts()) : the_post(); ?>
    3131    <item>
    3232        <title><?php the_title_rss() ?></title>
     
    5252    <?php do_action('rss2_item'); ?>
    5353    </item>
    54     <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } } ?>
     54    <?php endwhile; ?>
    5555</channel>
    5656</rss>
Note: See TracChangeset for help on using the changeset viewer.