@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Alias for get_instance() |
| 79 | 79 | * |
| 80 | - * @param $field_name |
|
| 80 | + * @param string $field_name |
|
| 81 | 81 | * |
| 82 | 82 | * @return GravityView_Field|false |
| 83 | 83 | */ |
@@ -88,7 +88,6 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Alias for get_instance() |
| 90 | 90 | * |
| 91 | - * @param string|GF_Field $field_name Gravity Forms field class or the class name type |
|
| 92 | 91 | * |
| 93 | 92 | * @return GravityView_Field |
| 94 | 93 | */ |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | |
| 614 | 614 | $back_link = esc_url( remove_query_arg( array( 'page', 'view', 'edit' ) ) ); |
| 615 | 615 | |
| 616 | - if( ! $this->is_valid ){ |
|
| 616 | + if( ! $this->is_valid ) { |
|
| 617 | 617 | |
| 618 | 618 | // Keeping this compatible with Gravity Forms. |
| 619 | 619 | $validation_message = "<div class='validation_error'>" . __('There was a problem with your submission.', 'gravityview') . " " . __('Errors have been highlighted below.', 'gravityview') . "</div>"; |
@@ -1620,9 +1620,7 @@ discard block |
||
| 1620 | 1620 | // Verify |
| 1621 | 1621 | else if( ! $this->is_edit_entry() ) { |
| 1622 | 1622 | $valid = false; |
| 1623 | - } |
|
| 1624 | - |
|
| 1625 | - else { |
|
| 1623 | + } else { |
|
| 1626 | 1624 | $valid = wp_verify_nonce( $_GET['edit'], self::$nonce_key ); |
| 1627 | 1625 | } |
| 1628 | 1626 | |