WordPress.org

Plugin Directory

Changeset 634548


Ignore:
Timestamp:
12/05/12 21:31:52 (17 months ago)
Author:
ethitter
Message:

Infinite Scroll update

Ensure first page of paged content is shown by always unsetting the page query argument. Can be added back by filter if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/infinite-scroll/infinity.php

    r631532 r634548  
    716716        ) ); 
    717717 
     718        // By default, don't query for a specific page of a paged post object. 
     719        // This argument comes from merging $wp_the_query. 
     720        // Since IS is only used on archives, we should always display the first page of any paged content. 
     721        unset( $query_args['page'] ); 
     722 
    718723        $query_args = apply_filters( 'infinite_scroll_query_args', $query_args ); 
    719724 
Note: See TracChangeset for help on using the changeset viewer.