PluginProbe
WP Data Access – App Builder for Tables, Forms, Dashboards, Charts & Maps / 5.5.87
WP Data Access – App Builder for Tables, Forms, Dashboards, Charts & Maps v5.5.87
5.5.87 5.5.85 5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 All 162 releases
← All changes | public/class-wp-data-access-public.php +2 -46 5.5.84 → 5.5.87 View file →
@@ -452,20 +452,10 @@
452 452 global $wpdb;
453 453 $atts = array_change_key_case( (array) $atts, CASE_LOWER );
454 454 //phpcs:ignore - 8.1 proof
455 455 $wp_atts = shortcode_atts( array(
456 - 'project_id' => '',
457 - 'page_id' => '',
458 - 'title' => '',
459 - 'subtitle' => '',
460 - 'bulk_actions_enabled' => false,
461 - 'search_box_enabled' => false,
462 - 'bulk_export_enabled' => false,
463 - 'show_view_link' => 'on',
464 - 'allow_insert' => 'off',
465 - 'allow_update' => 'off',
466 - 'allow_delete' => 'off',
467 - 'allow_import' => 'off',
456 + 'project_id' => '',
457 + 'page_id' => '',
468 458 ), $atts );
469 459 if ( '' === $wp_atts['project_id'] && '' === $wp_atts['page_id'] ) {
470 460 // Dashboard menu feature was removed. Parameter table_name no longer valid.
471 461 return __( 'ERROR: Missing argument(s) [project_id and page_id]', 'wp-data-access' );
@@ -474,42 +464,8 @@
474 464 $wp_atts['project_id'] = sanitize_text_field( wp_unslash( $wp_atts['project_id'] ) );
475 465 // input var okay.
476 466 $wp_atts['page_id'] = sanitize_text_field( wp_unslash( $wp_atts['page_id'] ) );
477 467 // input var okay.
478 - // Set default parameter values.
479 - $bulk_actions_enabled = false;
480 - $search_box_enabled = false;
481 - $bulk_export_enabled = false;
482 - $show_view_link = 'on';
483 - $allow_insert = 'off';
484 - $allow_update = 'off';
485 - $allow_delete = 'off';
486 - $allow_import = 'off';
487 - // Check arguments.
488 - if ( 'true' === $wp_atts['bulk_actions_enabled'] ) {
489 - $bulk_actions_enabled = true;
490 - }
491 - if ( 'true' === $wp_atts['search_box_enabled'] ) {
492 - $search_box_enabled = true;
493 - }
494 - if ( 'true' === $wp_atts['bulk_export_enabled'] ) {
495 - $bulk_export_enabled = true;
496 - }
497 - if ( 'false' === $wp_atts['show_view_link'] ) {
498 - $show_view_link = 'off';
499 - }
500 - if ( 'true' === $wp_atts['allow_insert'] ) {
501 - $allow_insert = 'on';
502 - }
503 - if ( 'true' === $wp_atts['allow_update'] ) {
504 - $allow_update = 'on';
505 - }
506 - if ( 'true' === $wp_atts['allow_delete'] ) {
507 - $allow_delete = 'on';
508 - }
509 - if ( 'true' === $wp_atts['allow_import'] ) {
510 - $allow_import = 'on';
511 - }
512 468 $default_where = '';
513 469 if ( isset( $atts['filter_field_name'] ) && isset( $atts['filter_field_value'] ) ) {
514 470 $filter_field_name = str_replace( '`', '', sanitize_text_field( wp_unslash( $atts['filter_field_name'] ) ) );
515 471 // input var okay.