Plugin Directory

Changeset 1076514


Ignore:
Timestamp:
01/27/2015 07:49:17 AM (11 years ago)
Author:
irenem
Message:

Remove posts per page filter at admin area and search results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conditional-logic-solution/trunk/lib/post.php

    r1075601 r1076514  
    9797                global $wp_query;
    9898               
    99                 if( $wp_query->is_main_query() ){
    100                         $post_type = $wp_query->get('post_type');
    101                        
    102                         if( $this->is_post() ){                               
     99                if( !is_admin() && $wp_query->is_main_query() ){                       
     100                       
     101                        if( !is_search() && $this->is_post() ){                               
    103102                                if( (int) $this->values->per_page > 0 ) $per_page = (int) $this->values->per_page;
    104103                        }                       
Note: See TracChangeset for help on using the changeset viewer.