Don't use deprecated start_wp(). Props westi. fixes #3188
git-svn-id: http://svn.automattic.com/wordpress/trunk@4465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
79d9f41663
commit
39dbda930c
|
@ -157,7 +157,7 @@ $posts_columns['control_delete'] = '';
|
||||||
<?php
|
<?php
|
||||||
if ($posts) {
|
if ($posts) {
|
||||||
$bgcolor = '';
|
$bgcolor = '';
|
||||||
foreach ($posts as $post) { start_wp();
|
while (have_posts()) : the_post();
|
||||||
add_filter('the_title','wp_specialchars');
|
add_filter('the_title','wp_specialchars');
|
||||||
$class = ('alternate' == $class) ? '' : 'alternate';
|
$class = ('alternate' == $class) ? '' : 'alternate';
|
||||||
?>
|
?>
|
||||||
|
@ -235,7 +235,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
endwhile;
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<tr style='background-color: <?php echo $bgcolor; ?>'>
|
<tr style='background-color: <?php echo $bgcolor; ?>'>
|
||||||
|
|
|
@ -23,7 +23,7 @@ $more = 1;
|
||||||
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
|
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
|
||||||
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
|
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
|
||||||
<?php do_action('atom_head'); ?>
|
<?php do_action('atom_head'); ?>
|
||||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
<entry>
|
<entry>
|
||||||
<author>
|
<author>
|
||||||
<name><?php the_author() ?></name>
|
<name><?php the_author() ?></name>
|
||||||
|
@ -41,5 +41,5 @@ $more = 1;
|
||||||
<?php rss_enclosure(); ?>
|
<?php rss_enclosure(); ?>
|
||||||
<?php do_action('atom_entry'); ?>
|
<?php do_action('atom_entry'); ?>
|
||||||
</entry>
|
</entry>
|
||||||
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php endwhile ; ?>
|
||||||
</feed>
|
</feed>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/* Don't remove these lines. */
|
/* Don't remove these lines. */
|
||||||
add_filter('comment_text', 'popuplinks');
|
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">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
@ -93,7 +93,7 @@ if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH
|
||||||
<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
|
<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
|
<?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 :) -->
|
<!-- // this is just the end of the motor - don't touch that line either :) -->
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/* Don't remove these lines. */
|
/* Don't remove these lines. */
|
||||||
add_filter('comment_text', 'popuplinks');
|
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">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
@ -93,7 +93,7 @@ if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $pos
|
||||||
<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
|
<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
|
<?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 :) -->
|
<!-- // this is just the end of the motor - don't touch that line either :) -->
|
||||||
|
|
|
@ -21,7 +21,7 @@ $more = 1;
|
||||||
<language><?php echo get_option('rss_language'); ?></language>
|
<language><?php echo get_option('rss_language'); ?></language>
|
||||||
<?php do_action('rss_head'); ?>
|
<?php do_action('rss_head'); ?>
|
||||||
|
|
||||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
<item>
|
<item>
|
||||||
<title><?php the_title_rss() ?></title>
|
<title><?php the_title_rss() ?></title>
|
||||||
<?php if (get_option('rss_use_excerpt')) { ?>
|
<?php if (get_option('rss_use_excerpt')) { ?>
|
||||||
|
@ -32,6 +32,6 @@ $more = 1;
|
||||||
<link><?php permalink_single_rss() ?></link>
|
<link><?php permalink_single_rss() ?></link>
|
||||||
<?php do_action('rss_item'); ?>
|
<?php do_action('rss_item'); ?>
|
||||||
</item>
|
</item>
|
||||||
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php endwhile; ?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
@ -27,7 +27,7 @@ $more = 1;
|
||||||
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
|
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
|
||||||
<language><?php echo get_option('rss_language'); ?></language>
|
<language><?php echo get_option('rss_language'); ?></language>
|
||||||
<?php do_action('rss2_head'); ?>
|
<?php do_action('rss2_head'); ?>
|
||||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
<?php while( have_posts()) : the_post(); ?>
|
||||||
<item>
|
<item>
|
||||||
<title><?php the_title_rss() ?></title>
|
<title><?php the_title_rss() ?></title>
|
||||||
<link><?php permalink_single_rss() ?></link>
|
<link><?php permalink_single_rss() ?></link>
|
||||||
|
@ -51,6 +51,6 @@ $more = 1;
|
||||||
<?php rss_enclosure(); ?>
|
<?php rss_enclosure(); ?>
|
||||||
<?php do_action('rss2_item'); ?>
|
<?php do_action('rss2_item'); ?>
|
||||||
</item>
|
</item>
|
||||||
<?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } } ?>
|
<?php endwhile; ?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
Loading…
Reference in New Issue