← All changes
|
includes/admin/class-charitable-meta-box-helper.php
+3
-3
1.6.7
→
1.8.13
View file →
| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Charitable Meta Box Helper |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Classes/Charitable_Meta_Box_Helper |
| 6 | - * @author Eric Daams | |
| 7 | - * @copyright Copyright (c) 2018, Studio 164a | |
| 6 | + * @author David Bisset | |
| 7 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 9 | * @since 1.0.0 |
| 10 | 10 | * @version 1.0.0 |
| 11 | 11 | */ |
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | */ |
| 146 | 146 | public function user_can_save( $post_id ) { |
| 147 | 147 | $is_autosave = wp_is_post_autosave( $post_id ); |
| 148 | 148 | $is_revision = wp_is_post_revision( $post_id ); |
| 149 | - $is_valid_nonce = ( isset( $_POST[ $this->nonce_name ] ) && wp_verify_nonce( $_POST[ $this->nonce_name ], $this->nonce_action ) ); | |
| 149 | + $is_valid_nonce = ( isset( $_POST[ $this->nonce_name ] ) && wp_verify_nonce( $_POST[ $this->nonce_name ], $this->nonce_action ) ); // phpcs:ignore | |
| 150 | 150 | |
| 151 | 151 | return ! ( $is_autosave || $is_revision ) && $is_valid_nonce; |
| 152 | 152 | } |
| 153 | 153 | } |