summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-01-29 13:46:47 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-01-29 13:46:47 +0100
commitddc7d33dcff69a1a552e93c966a156ffd5bc3817 (patch)
tree623080439d57777c665dda5d9a312e7cde76081a
parent9ca2ee4cb4679e68ec832f89d36af0606334743c (diff)
downloadgigologadmin-ddc7d33dcff69a1a552e93c966a156ffd5bc3817.tar.gz
gigologadmin-ddc7d33dcff69a1a552e93c966a156ffd5bc3817.tar.bz2
gigologadmin-ddc7d33dcff69a1a552e93c966a156ffd5bc3817.zip
Rename recperpage to limit.
-rw-r--r--includes/class-giglogadmin-concert.php2
-rw-r--r--includes/giglogadmin-shortcodes.php2
-rw-r--r--includes/view-helpers/class-giglogadmin-concertstable.php2
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 );
}