Changeset 4465
- Timestamp:
- 11/14/2006 01:24:27 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r4437 r4465 158 158 if ($posts) { 159 159 $bgcolor = ''; 160 foreach ($posts as $post) { start_wp();160 while (have_posts()) : the_post(); 161 161 add_filter('the_title','wp_specialchars'); 162 162 $class = ('alternate' == $class) ? '' : 'alternate'; … … 236 236 </tr> 237 237 <?php 238 } 238 endwhile; 239 239 } else { 240 240 ?> -
trunk/wp-atom.php
r4144 r4465 24 24 <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> 25 25 <?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(); ?> 27 27 <entry> 28 28 <author> … … 42 42 <?php do_action('atom_entry'); ?> 43 43 </entry> 44 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } }?>44 <?php endwhile ; ?> 45 45 </feed> -
trunk/wp-content/themes/classic/comments-popup.php
r4144 r4465 2 2 /* Don't remove these lines. */ 3 3 add_filter('comment_text', 'popuplinks'); 4 foreach ($posts as $post) { start_wp();4 while( have_posts()) : the_post(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 94 94 95 95 <?php // if you delete this the sky will fall on your head 96 } 96 endwhile; 97 97 ?> 98 98 -
trunk/wp-content/themes/default/comments-popup.php
r4144 r4465 2 2 /* Don't remove these lines. */ 3 3 add_filter('comment_text', 'popuplinks'); 4 foreach ($posts as $post) { start_wp();4 while ( have_posts()) : the_post(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 94 94 95 95 <?php // if you delete this the sky will fall on your head 96 } 96 endwhile; 97 97 ?> 98 98 -
trunk/wp-rss.php
r4144 r4465 22 22 <?php do_action('rss_head'); ?> 23 23 24 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>24 <?php while (have_posts()) : the_post(); ?> 25 25 <item> 26 26 <title><?php the_title_rss() ?></title> … … 33 33 <?php do_action('rss_item'); ?> 34 34 </item> 35 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && empty($m)) { break; } } }?>35 <?php endwhile; ?> 36 36 </channel> 37 37 </rss> -
trunk/wp-rss2.php
r4184 r4465 28 28 <language><?php echo get_option('rss_language'); ?></language> 29 29 <?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(); ?> 31 31 <item> 32 32 <title><?php the_title_rss() ?></title> … … 52 52 <?php do_action('rss2_item'); ?> 53 53 </item> 54 <?php $items_count++; if (($items_count == get_option('posts_per_rss')) && !is_date()) { break; } } }?>54 <?php endwhile; ?> 55 55 </channel> 56 56 </rss>
Note: See TracChangeset
for help on using the changeset viewer.