PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/controllers/FrmTransLiteListsController.php +9 -3 6.27 → trunk View file →
@@ -99,9 +99,9 @@
99 99 $menu_name .= '-' . $unread_count;
100 100 }
101 101
102 102 if ( $screen->id === $menu_name . '_page_formidable-payments' ) {
103 - $show_screen = false;
103 + return false;
104 104 }
105 105
106 106 return $show_screen;
107 107 }
@@ -120,8 +120,14 @@
120 120 include FrmTransLiteAppHelper::plugin_path() . '/views/lists/coupons.php';
121 121 return;
122 122 }
123 123
124 + // Show no-payments placeholder if payments table doesn't exist.
125 + if ( ! FrmTransLiteAppHelper::payments_table_exists() ) {
126 + include FrmTransLiteAppHelper::plugin_path() . '/views/lists/no-payments.php';
127 + return;
128 + }
129 +
124 130 /**
125 131 * @since 6.27
126 132 *
127 133 * @param bool $route_handled
@@ -180,9 +186,9 @@
180 186
181 187 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
182 188
183 189 if ( $pagenum > $total_pages && $total_pages > 0 ) {
184 - // if the current page is higher than the total pages,
190 + // If the current page is higher than the total pages,
185 191 // reset it and prepare again to get the right entries.
186 192 $_GET['paged'] = $total_pages;
187 193 $_REQUEST['paged'] = $total_pages;
188 194 $pagenum = $wp_list_table->get_pagenum();
@@ -200,9 +206,9 @@
200 206 * @return mixed
201 207 */
202 208 public static function save_per_page( $save, $option, $value ) {
203 209 if ( $option === 'formidable_page_formidable_payments_per_page' ) {
204 - $save = absint( $value );
210 + return absint( $value );
205 211 }
206 212 return $save;
207 213 }
208 214 }