Changeset 181

Show
Ignore:
Timestamp:
01/10/05 14:43:01 (3 years ago)
Author:
morganiq
Message:

Updated to accommodate WP pages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mini-posts/trunk/mini-posts.php

    r180 r181  
    35350.1a   - Initial release. 
    36360.2    - Corrected load_plugin_textdomain() domain. 
    37  
    38 */  
     370.3    - Updated to accommodate WP pages. 
     38 
     39*/ 
    3940 
    4041if (is_plugin_page()) { 
     
    239240            global $wpdb, $pagenow; 
    240241             
    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()) { 
    242243                  $text .= " LEFT JOIN $wpdb->postmeta ON ($wpdb->posts.ID = $wpdb->postmeta.post_id)"; 
    243244            } 
     
    249250            global $user_ID, $user_level, $wpdb, $pagenow; 
    250251             
    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()) { 
    252253                  $text .= " AND ($wpdb->postmeta.meta_key = '_mini_post' AND $wpdb->postmeta.meta_value = 0)"; 
    253254            }