Plugin Directory

Changeset 566135


Ignore:
Timestamp:
07/01/2012 05:36:38 PM (14 years ago)
Author:
paddelboot
Message:

Fixed bug with default urls;

Location:
3pagination/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 3pagination/trunk/3pagination.php

    r566124 r566135  
    88 * TextDomain: 3pagination
    99 * DomainPath: /languages
    10  *
    11  * Available filters:
    12  *
    13  * threepagination_help
    14  * - gets passed the help tab content before displaying
    15  *
    1610 */
    1711if ( !class_exists( 'threepagination' ) ) {
     
    344338                // has at least one param
    345339                $params = parse_url( $base_url );
    346                 $url.= ( TRUE == $pretty ) ? '?' . $params[ 'query' ] : '&' . $params[ 'query' ];
     340                $params_default = preg_replace( '!&?paged=\d{1,3}&?!', '', $params[ 'query' ] );
     341               
     342                $url.= ( TRUE == $pretty ) ? '?' . $params[ 'query' ] : ( '' == $params_default ) ? '' : '&' . $params_default;
    347343            }           
    348344
     
    384380            delete_option( '3pagination_settings' );
    385381        }
     382
    386383    }
     384
    387385}
    388386?>
  • 3pagination/trunk/readme.txt

    r566124 r566135  
    9696- Fixed bug with pagination link;
    9797- Contextual help tab
     98- Fixed bug with default URLs pagination links
    9899
    99100== A brief Markdown Example ==
Note: See TracChangeset for help on using the changeset viewer.