Skip to content

Commit

Permalink
Fix: Optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Jun 15, 2024
1 parent ac34062 commit b41d4ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/multisite/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ function mp_global_list_products( $args = array() ) {
}

if ( ! function_exists( 'mp_global_products_nav' ) ) {
function mp_global_products_nav( $echo = true, $per_page, $count ) {
function mp_global_products_nav( $per_page, $count, $echo = true ) {
$html = '';
$paged = 1;
$max_pages = ceil( $count / $per_page );

if ( $max_pages > 1 ) {
$big = 999999999;

if ( get_query_var( 'paged' ) != '' ) {
$paged = intval( get_query_var( 'paged' ) );
} elseif ( get_query_var( 'page' ) != '' ) {
Expand Down Expand Up @@ -367,7 +367,7 @@ function mp_global_products_nav( $echo = true, $per_page, $count ) {
* @since 3.0
*
* @param string $html
* @param WP_Query $custom_query
* @param int $per_page
*/
$html = apply_filters( 'mp_global_products_nav', $html, $per_page );

Expand Down

0 comments on commit b41d4ce

Please sign in to comment.