PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | libraries/cmb2/includes/CMB2_Field.php +5 -7 5.8.6 → 6.0.3 View file →
@@ -433,11 +433,10 @@
433 433
434 434 // If no override, remove as usual.
435 435 if ( null !== $override ) {
436 436 return $override;
437 - } // End if.
438 - // Option page handling.
439 - elseif ( 'options-page' === $a['type'] || empty( $a['id'] ) ) {
437 + } elseif ( 'options-page' === $a['type'] || empty( $a['id'] ) ) {
438 + // Option page handling.
440 439 return cmb2_options( $a['id'] )->remove( $a['field_id'] );
441 440 }
442 441
443 442 // Remove metadata.
@@ -469,9 +468,9 @@
469 468 * @param mixed $meta_value Meta value.
470 469 * @return mixed Possibly sanitized meta value
471 470 */
472 471 public function sanitization_cb( $meta_value ) {
473 -
472 +
474 473 if ( $this->args( 'repeatable' ) && is_array( $meta_value ) ) {
475 474 // Remove empties.
476 475 $meta_value = array_filter( $meta_value );
477 476 }
@@ -799,11 +798,10 @@
799 798
800 799 // Is timezone arg set?
801 800 if ( $this->args( 'timezone' ) ) {
802 801 $value = $this->args( 'timezone' );
803 - } // End if.
804 - // Is there another meta key with a timezone stored as its value we should use?
805 - elseif ( $this->args( 'timezone_meta_key' ) ) {
802 + } elseif ( $this->args( 'timezone_meta_key' ) ) {
803 + // Is there another meta key with a timezone stored as its value we should use?
806 804 $value = $this->get_data( $this->args( 'timezone_meta_key' ) );
807 805 }
808 806
809 807 return $value;