Ticket #3188: 3188.diff
File 3188.diff, 6.6 KB (added by , 18 years ago) |
---|
-
wp-rss.php
21 21 <language><?php echo get_option('rss_language'); ?></language> 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> 27 27 <?php if (get_option('rss_use_excerpt')) { ?> … … 32 32 <link><?php permalink_single_rss() ?></link> 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> -
wp-includes/query.php
919 919 } elseif ($this->is_single) { 920 920 $where .= " AND (post_type = 'post')"; 921 921 } else { 922 $where .= " AND (post_type = '$post_type' AND (post_status = 'publish'"; 922 if ('all' == $post_type) 923 $where .= " AND ( 1=1 AND (post_status = 'publish'"; 924 else 925 $where .= " AND (post_type = '$post_type' AND (post_status = 'publish'"; 923 926 924 927 if ( is_admin() ) 925 928 $where .= " OR post_status = 'future' OR post_status = 'draft'"; -
wp-content/themes/classic/comments-popup.php
1 1 <?php 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"> 7 7 <html xmlns="http://www.w3.org/1999/xhtml"> … … 93 93 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> 94 94 95 95 <?php // if you delete this the sky will fall on your head 96 } 96 endwhile; 97 97 ?> 98 98 99 99 <!-- // this is just the end of the motor - don't touch that line either :) --> -
wp-content/themes/default/comments-popup.php
1 1 <?php 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"> 7 7 <html xmlns="http://www.w3.org/1999/xhtml"> … … 93 93 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div> 94 94 95 95 <?php // if you delete this the sky will fall on your head 96 } 96 endwhile; 97 97 ?> 98 98 99 99 <!-- // this is just the end of the motor - don't touch that line either :) --> -
wp-rss2.php
27 27 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 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> 33 33 <link><?php permalink_single_rss() ?></link> … … 51 51 <?php rss_enclosure(); ?> 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> -
wp-atom.php
23 23 <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright> 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> 29 29 <name><?php the_author() ?></name> … … 41 41 <?php rss_enclosure(); ?> 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> -
wp-admin/edit.php
157 157 <?php 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'; 163 163 ?> … … 235 235 ?> 236 236 </tr> 237 237 <?php 238 } 238 endwhile; 239 239 } else { 240 240 ?> 241 241 <tr style='background-color: <?php echo $bgcolor; ?>'> -
wp-admin/export.php
31 31 header('Content-Type: application/octet-stream'); 32 32 header("Content-Disposition: attachment; filename=$filename"); 33 33 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 34 //$posts = query_posts('');35 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC");34 $posts = query_posts('posts_per_page=-1&order=ASC&post_type=all'); 35 //$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC"); 36 36 ?> 37 37 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"--> 38 38 <rss version="2.0" … … 50 50 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 51 51 <language><?php echo get_option('rss_language'); ?></language> 52 52 <?php do_action('rss2_head'); ?> 53 <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>53 <?php while (have_posts()) : the_post(); ?> 54 54 <item> 55 55 <title><?php the_title_rss() ?></title> 56 56 <link><?php permalink_single_rss() ?></link> … … 97 97 </wp:comment> 98 98 <?php } } ?> 99 99 </item> 100 <?php } }?>100 <?php endwhile; ?> 101 101 </channel> 102 102 </rss> 103 103 <?php … … 105 105 } 106 106 107 107 include ('admin-footer.php'); 108 ?> 109 No newline at end of file 108 ?>