summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-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 );
}