@@ -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', |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | } |
63 | 63 | |
64 | - $start = self::get_param( |
|
64 | + $start = self::get_param( |
|
65 | 65 | array( |
66 | 66 | 'param' => 'start', |
67 | 67 | 'default' => ( $page - 1 ) * $per_page, |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $counts = FrmForm::get_count(); |
194 | 194 | $form_type = FrmAppHelper::simple_get( 'form_type', 'sanitize_title', 'published' ); |
195 | 195 | |
196 | - if ( isset( $statuses[ $form_type ] ) ) { |
|
196 | + if ( isset( $statuses[$form_type] ) ) { |
|
197 | 197 | $counts->$form_type = $this->total_items; |
198 | 198 | } |
199 | 199 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | if ( $counts->{$status} || 'draft' !== $status ) { |
216 | 216 | /* translators: %1$s: Status, %2$s: Number of items */ |
217 | - $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>'; |
|
217 | + $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>'; |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | unset( $status, $name ); |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | private function get_actions( &$actions, $item, $edit_link ) { |
417 | 417 | $new_actions = FrmFormsHelper::get_action_links( $item->id, $item ); |
418 | 418 | foreach ( $new_actions as $link => $action ) { |
419 | - $new_actions[ $link ] = FrmFormsHelper::format_link_html( $action, 'short' ); |
|
419 | + $new_actions[$link] = FrmFormsHelper::format_link_html( $action, 'short' ); |
|
420 | 420 | } |
421 | 421 | |
422 | 422 | if ( 'trash' === $this->status ) { |