PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.84
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.84
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 5.5.41 5.5.42 All 160 releases
← All changes | WPDataAccess/Simple_Form/WPDA_Simple_Form_Item.php +10 -13 5.5.765.5.84 View file →
@@ -333,24 +333,24 @@
333 333 );
334 334
335 335 if ( '' === $args['item_name'] ) {
336 336 // Without an item name it makes no sense to continue
337 - wp_die( __( 'ERROR: Wrong arguments [missing item name]', 'wp-data-access' ) );
337 + wp_die( esc_attr__( 'ERROR: Wrong arguments [missing item name]', 'wp-data-access' ) );
338 338 }
339 339
340 340 if ( '' === $args['data_type'] ) {
341 341 // Without a data type it makes no sense to continue
342 - wp_die( __( 'ERROR: Wrong arguments [missing data type]', 'wp-data-access' ) );
342 + wp_die( esc_attr__( 'ERROR: Wrong arguments [missing data type]', 'wp-data-access' ) );
343 343 }
344 344
345 345 $this->item_name = $args['item_name'];
346 346 $this->data_type = WPDA::get_type( $args['data_type'] );
347 347 $this->item_icon_type = $this->data_type;
348 - $this->item_label = (string) $args['item_label']; //phpcs:ignore - 8.1 proof
348 + $this->item_label = (string) $args['item_label']; // phpcs:ignore -- 8.1 proof
349 349 if ( null === $args['item_value'] ) {
350 350 $this->item_value = null;
351 351 } else {
352 - $this->item_value = (string) $args['item_value']; //phpcs:ignore - 8.1 proof
352 + $this->item_value = (string) $args['item_value']; // phpcs:ignore -- 8.1 proof
353 353 }
354 354 if (
355 355 'current_timestamp()' !== strtolower( (string) $args['item_default_value'] ) &&
356 356 'current_timestamp' !== strtolower( (string) $args['item_default_value'] )
@@ -371,9 +371,9 @@
371 371 '\'',
372 372 '',
373 373 substr( substr( ( string ) $args['item_enum'], 5 ), 0, - 1 )
374 374 )
375 - );//phpcs:ignore - 8.1 proof
375 + ); // phpcs:ignore -- 8.1 proof
376 376 }
377 377 if ( 'set' === $this->data_type ) {
378 378 $this->item_enum = explode(
379 379 ',',
@@ -381,9 +381,9 @@
381 381 '\'',
382 382 '',
383 383 substr( substr( ( string ) $args['item_enum'], 4 ), 0, - 1 )
384 384 )
385 - );//phpcs:ignore - 8.1 proof
385 + ); // phpcs:ignore -- 8.1 proof
386 386 }
387 387 $this->column_type = $args['column_type'];
388 388 $this->item_event = $args['item_event'];
389 389 $this->item_js = $args['item_js'];
@@ -403,12 +403,12 @@
403 403 foreach ( $args as $property => $value ) {
404 404 $this->$property = $value;
405 405 }
406 406 } else {
407 - wp_die( __( 'Class must be of (sub)type WPDA_Simple_Form_Item', 'wp-data-access' ) );
407 + wp_die( esc_attr__( 'Class must be of (sub)type WPDA_Simple_Form_Item', 'wp-data-access' ) );
408 408 }
409 409 } else {
410 - wp_die( __( 'Could not create form item instance [argument must be array or object]', 'wp-data-access' ) );
410 + wp_die( esc_attr__( 'Could not create form item instance [argument must be array or object]', 'wp-data-access' ) );
411 411 }
412 412 }
413 413
414 414 /**
@@ -448,9 +448,9 @@
448 448 <tr <?php echo '' === $row_class ? '' : ' class="' . esc_attr( $row_class ) . '"'; ?>>
449 449 <?php
450 450 }
451 451
452 - $label = explode( '|', esc_attr( $this->item_label ) );//phpcs:ignore - 8.1 proof
452 + $label = explode( '|', esc_attr( $this->item_label ) ); // phpcs:ignore -- 8.1 proof
453 453 $label_before = $label[0];
454 454 $label_after = '';
455 455 if ( isset( $label[1] ) ) {
456 456 $label_after = $label[1];
@@ -974,12 +974,9 @@
974 974
975 975 if ( 'NO' === $this->is_nullable ) {
976 976 // Empty values are not allowed for this column: check value.
977 977 if ( '' === $this->item_value ) {
978 - if (
979 - isset( $_REQUEST[ "{$this->item_name}_db_is_null" ] ) &&
980 - 'false' === strtolower( $_REQUEST[ "{$this->item_name}_db_is_null" ] ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
981 - ) {
978 + if ( isset( $_REQUEST[ "{$this->item_name}_db_is_null" ] ) && 'false' === strtolower( $_REQUEST[ "{$this->item_name}_db_is_null" ] ) ) { // phpcs:ignore
982 979 // Allow update if original column already was an empty string
983 980 return true;
984 981 }
985 982