One littel bug
-
Hi! Your plugin has the bug. If i have urls with params i.g. mysite.ru/mybliogpages?param=value in result your a plugin return pages urls viewed as mysite.ru/mybliogpages?param=value/page/2 .
To fix it yon need change this code
if( $wp_rewrite->using_permalinks() ){ $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', $pl[0] ) ) . 'page/%#%/', 'paged' ); }else{ $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', $pl[0] ) ) . '?paged=%#%/', 'paged' ); }
to
$pl = explode('?',get_pagenum_link( 1 )); if( $wp_rewrite->using_permalinks() ){ $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', $pl[0] ) ) . 'page/%#%/', 'paged' ); }else{ $pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg( 's', $pl[0] ) ) . '?paged=%#%/', 'paged' ); } $pagination['base'] = $pagination['base'].'?'.$pl[1];
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘One littel bug’ is closed to new replies.