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 | classes/helpers/FrmEntriesListHelper.php +15 -3 6.30 → trunk View file →
@@ -207,10 +207,22 @@
207 207 'sanitize' => 'sanitize_text_field',
208 208 )
209 209 );
210 210
211 - if ( $s ) {
212 - esc_html_e( 'No Entries Found', 'formidable' );
211 + if ( $s !== '' ) {
212 + $current_url = set_url_scheme(
213 + 'http://' . FrmAppHelper::get_server_value( 'HTTP_HOST' ) . FrmAppHelper::get_server_value( 'REQUEST_URI' )
214 + );
215 + $clear_url = remove_query_arg( 's', $current_url );
216 +
217 + echo '<p>';
218 + printf(
219 + /* translators: %1$s: Start link HTML, %2$s: End link HTML */
220 + esc_html__( 'No entries match your search. %1$sClear search%2$s', 'formidable' ),
221 + '<a href="' . esc_url( $clear_url ) . '">',
222 + '</a>'
223 + );
224 + echo '</p>';
213 225 return;
214 226 }
215 227
216 228 $form_id = $this->params['form'];
@@ -363,9 +375,9 @@
363 375 $class .= ' column-primary';
364 376 }
365 377
366 378 if ( in_array( $column_name, $hidden, true ) ) {
367 - $class .= ' frm_hidden';
379 + $class .= ' hidden';
368 380 } elseif ( ! $action_col && ! in_array( $column_name, $action_columns, true ) ) {
369 381 $action_col = $column_name;
370 382 }
371 383