Skip to content

Commit

Permalink
Don't use deprecated start_wp(). Props westi. fixes #3188
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@4465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Nov 14, 2006
1 parent 79d9f41 commit 39dbda9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions wp-admin/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<?php
if ($posts) {
$bgcolor = '';
foreach ($posts as $post) { start_wp();
while (have_posts()) : the_post();
add_filter('the_title','wp_specialchars');
$class = ('alternate' == $class) ? '' : 'alternate';
?>
Expand Down Expand Up @@ -235,7 +235,7 @@
?>
</tr>
<?php
}
endwhile;
} else {
?>
<tr style='background-color: <?php echo $bgcolor; ?>'>
Expand Down
4 changes: 2 additions & 2 deletions wp-atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
<?php do_action('atom_head'); ?>
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<?php while (have_posts()) : the_post(); ?>
<entry>
<author>
<name><?php the_author() ?></name>
Expand All @@ -41,5 +41,5 @@
<?php rss_enclosure(); ?>
<?php do_action('atom_entry'); ?>
</entry>
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
<?php endwhile ; ?>
</feed>
4 changes: 2 additions & 2 deletions wp-content/themes/classic/comments-popup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
while( have_posts()) : the_post();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down Expand Up @@ -93,7 +93,7 @@
<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>

<?php // if you delete this the sky will fall on your head
}
endwhile;
?>

<!-- // this is just the end of the motor - don't touch that line either :) -->
Expand Down
4 changes: 2 additions & 2 deletions wp-content/themes/default/comments-popup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
while ( have_posts()) : the_post();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down Expand Up @@ -93,7 +93,7 @@
<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>

<?php // if you delete this the sky will fall on your head
}
endwhile;
?>

<!-- // this is just the end of the motor - don't touch that line either :) -->
Expand Down
4 changes: 2 additions & 2 deletions wp-rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<language><?php echo get_option('rss_language'); ?></language>
<?php do_action('rss_head'); ?>

<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<?php while (have_posts()) : the_post(); ?>
<item>
<title><?php the_title_rss() ?></title>
<?php if (get_option('rss_use_excerpt')) { ?>
Expand All @@ -32,6 +32,6 @@
<link><?php permalink_single_rss() ?></link>
<?php do_action('rss_item'); ?>
</item>
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
<?php endwhile; ?>
</channel>
</rss>
4 changes: 2 additions & 2 deletions wp-rss2.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
<language><?php echo get_option('rss_language'); ?></language>
<?php do_action('rss2_head'); ?>
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<?php while( have_posts()) : the_post(); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
Expand All @@ -51,6 +51,6 @@
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } } ?>
<?php endwhile; ?>
</channel>
</rss>

0 comments on commit 39dbda9

Please sign in to comment.