PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.3.34
HTML Forms – Simple WordPress Forms Plugin v1.3.34
1.7.0 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 All 67 releases
← All changes | src/admin/class-table.php +3 -20 trunk1.3.34 View file →
@@ -66,10 +66,10 @@
66 66 $current = isset( $_GET['post_status'] ) ? $_GET['post_status'] : '';
67 67 $count_any = $counts->publish + $counts->draft + $counts->future + $counts->pending;
68 68
69 69 return array(
70 - '' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', esc_url( remove_query_arg( 'post_status' ) ), $current == '' ? 'current' : '', __( 'All', 'html-forms' ), $count_any ),
71 - 'trash' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', esc_url( add_query_arg( array( 'post_status' => 'trash' ) ) ), $current == 'trash' ? 'current' : '', __( 'Trash', 'html-forms' ), $counts->trash ),
70 + '' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', remove_query_arg( 'post_status' ), $current == '' ? 'current' : '', __( 'All', 'html-forms' ), $count_any ),
71 + 'trash' => sprintf( '<a href="%s" class="%s">%s</a> (%d)', add_query_arg( array( 'post_status' => 'trash' ) ), $current == 'trash' ? 'current' : '', __( 'Trash', 'html-forms' ), $counts->trash ),
72 72 );
73 73 }
74 74
75 75 /**
@@ -110,9 +110,8 @@
110 110 return array(
111 111 'cb' => '<input type="checkbox" />',
112 112 'form_name' => __( 'Form', 'html-forms' ),
113 113 'shortcode' => __( 'Shortcode', 'html-forms' ),
114 - 'submissions' => __( 'Submissions', 'html-forms' ),
115 114 );
116 115 }
117 116
118 117 /**
@@ -206,25 +205,9 @@
206 205 if ( $this->is_trash ) {
207 206 return '';
208 207 }
209 208
210 - return sprintf( '<input type="text" onfocus="this.select();" readonly="readonly" value="%s">', esc_attr( '[hf_form slug="' . $form->slug . '"]' ) );
211 - }
212 -
213 - /**
214 - * @param Form $form
215 - *
216 - * @return string
217 - */
218 - public function column_submissions( Form $form ) {
219 - $edit_link = admin_url( 'admin.php?page=html-forms&view=edit&form_id=' . $form->ID );
220 - $submissions = hf_count_form_submissions( $form->id );
221 -
222 - if ($submissions == 0 || $this->is_trash) {
223 - return $submissions;
224 - } else {
225 - return sprintf( '<a href="' . esc_attr( add_query_arg( array( 'tab' =>'submissions' ), $edit_link ) ) . '">' . $submissions . '</a>');
226 - }
209 + return sprintf( '<input style="width: 260px;" type="text" onfocus="this.select();" readonly="readonly" value="%s">', esc_attr( '[hf_form slug="' . $form->slug . '"]' ) );
227 210 }
228 211
229 212 /**
230 213 * The text that is shown when there are no items to show