Changeset 181
- Timestamp:
- 01/10/05 14:43:01 (3 years ago)
- Files:
-
- mini-posts/trunk/mini-posts.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mini-posts/trunk/mini-posts.php
r180 r181 35 35 0.1a - Initial release. 36 36 0.2 - Corrected load_plugin_textdomain() domain. 37 38 */ 37 0.3 - Updated to accommodate WP pages. 38 39 */ 39 40 40 41 if (is_plugin_page()) { … … 239 240 global $wpdb, $pagenow; 240 241 241 if ($pagenow != 'post.php' && $pagenow != 'edit.php' && get_settings('filter_mini_posts_from_loop') && !stristr($text, "wp_postmeta") ) {242 if ($pagenow != 'post.php' && $pagenow != 'edit.php' && get_settings('filter_mini_posts_from_loop') && !stristr($text, "wp_postmeta") && !is_page()) { 242 243 $text .= " LEFT JOIN $wpdb->postmeta ON ($wpdb->posts.ID = $wpdb->postmeta.post_id)"; 243 244 } … … 249 250 global $user_ID, $user_level, $wpdb, $pagenow; 250 251 251 if (!is_plugin_page() && $pagenow != 'post.php' && $pagenow != 'edit.php' && get_settings('filter_mini_posts_from_loop') && !is_single() && !is_archive() ) {252 if (!is_plugin_page() && $pagenow != 'post.php' && $pagenow != 'edit.php' && get_settings('filter_mini_posts_from_loop') && !is_single() && !is_archive() && !is_page()) { 252 253 $text .= " AND ($wpdb->postmeta.meta_key = '_mini_post' AND $wpdb->postmeta.meta_value = 0)"; 253 254 }
