installed plugin Easy Digital Downloads version 3.1.0.3

This commit is contained in:
2022-11-27 15:03:07 +00:00
committed by Gitium
parent 555673545b
commit c5dce2cec6
1200 changed files with 238970 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
$args = array(
'type' => 'download',
'format' => '?paged=%#%',
'current' => max( 1, $query_args['paged'] ),
'total' => $downloads->max_num_pages,
);
if ( is_single() ) {
$args['base'] = get_permalink() . '%#%';
} else {
$big = 999999;
$search_for = array( $big, '#038;' );
$replace_with = array( '%#%', '&' );
$args['base'] = str_replace( $search_for, $replace_with, get_pagenum_link( $big ) );
}
edd_pagination( $args );