From ddc7d33dcff69a1a552e93c966a156ffd5bc3817 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 29 Jan 2023 13:46:47 +0100 Subject: Rename recperpage to limit. --- includes/class-giglogadmin-concert.php | 2 +- includes/giglogadmin-shortcodes.php | 2 +- includes/view-helpers/class-giglogadmin-concertstable.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-giglogadmin-concert.php b/includes/class-giglogadmin-concert.php index f669c03..94b1902 100644 --- a/includes/class-giglogadmin-concert.php +++ b/includes/class-giglogadmin-concert.php @@ -233,7 +233,7 @@ if ( ! class_exists( 'GiglogAdmin_Concert' ) ) { array_push( $lmt, $value ); break; - case 'recperpage': + case 'limit': array_push( $lmt, $value ); break; } diff --git a/includes/giglogadmin-shortcodes.php b/includes/giglogadmin-shortcodes.php index 69f46c4..053e297 100644 --- a/includes/giglogadmin-shortcodes.php +++ b/includes/giglogadmin-shortcodes.php @@ -24,7 +24,7 @@ if ( ! function_exists( 'giglogadmin_shortcode_public' ) ) { function giglogadmin_shortcode_public() : string { $opts = array( 'offset' => 0, - 'recperpage' => 15, + 'limit' => 15, ); $concerts = GiglogAdmin_Concert::find_concerts( $opts ); diff --git a/includes/view-helpers/class-giglogadmin-concertstable.php b/includes/view-helpers/class-giglogadmin-concertstable.php index 9bf848c..ea48c3a 100644 --- a/includes/view-helpers/class-giglogadmin-concertstable.php +++ b/includes/view-helpers/class-giglogadmin-concertstable.php @@ -223,7 +223,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) { } $this->filter['offset'] = $offset; - $this->filter['recperpage'] = $total_records_per_page; + $this->filter['limit'] = $total_records_per_page; return GiglogAdmin_Concert::find_concerts( $this->filter ); } -- cgit v1.2.3