| @@ -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 | } |