@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $page = $this->get_pagenum(); |
29 | 29 | $per_page = $this->get_items_per_page( 'formidable_page_formidable_per_page' ); |
30 | 30 | |
31 | - $mode = self::get_param( |
|
31 | + $mode = self::get_param( |
|
32 | 32 | array( |
33 | 33 | 'param' => 'mode', |
34 | 34 | 'default' => 'list', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'default' => 'name', |
41 | 41 | ) |
42 | 42 | ); |
43 | - $order = self::get_param( |
|
43 | + $order = self::get_param( |
|
44 | 44 | array( |
45 | 45 | 'param' => 'order', |
46 | 46 | 'default' => 'ASC', |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | FrmAppController::apply_saved_sort_preference( $orderby, $order ); |
51 | 51 | |
52 | - $start = self::get_param( |
|
52 | + $start = self::get_param( |
|
53 | 53 | array( |
54 | 54 | 'param' => 'start', |
55 | 55 | 'default' => ( $page - 1 ) * $per_page, |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $counts = FrmForm::get_count(); |
182 | 182 | $form_type = FrmAppHelper::simple_get( 'form_type', 'sanitize_title', 'published' ); |
183 | 183 | |
184 | - if ( isset( $statuses[ $form_type ] ) ) { |
|
184 | + if ( isset( $statuses[$form_type] ) ) { |
|
185 | 185 | $counts->$form_type = $this->total_items; |
186 | 186 | } |
187 | 187 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | |
203 | 203 | if ( $counts->{$status} || 'draft' !== $status ) { |
204 | 204 | /* translators: %1$s: Status, %2$s: Number of items */ |
205 | - $links[ $status ] = '<a href="' . esc_url( '?page=formidable&form_type=' . $status ) . '" ' . $class . '>' . sprintf( __( '%1$s <span class="count">(%2$s)</span>', 'formidable' ), $name, number_format_i18n( $counts->{$status} ) ) . '</a>'; |
|
205 | + $links[$status] = '<a href="' . esc_url( '?page=formidable&form_type=' . $status ) . '" ' . $class . '>' . sprintf( __( '%1$s <span class="count">(%2$s)</span>', 'formidable' ), $name, number_format_i18n( $counts->{$status} ) ) . '</a>'; |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | unset( $status, $name ); |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | private function get_actions( &$actions, $item, $edit_link ) { |
405 | 405 | $new_actions = FrmFormsHelper::get_action_links( $item->id, $item ); |
406 | 406 | foreach ( $new_actions as $link => $action ) { |
407 | - $new_actions[ $link ] = FrmFormsHelper::format_link_html( $action, 'short' ); |
|
407 | + $new_actions[$link] = FrmFormsHelper::format_link_html( $action, 'short' ); |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | if ( 'trash' === $this->status ) { |