Fix phpcs

This commit is contained in:
Emili Castells Guasch 2023-08-14 14:30:57 +02:00
parent 1294b331ac
commit 32aaad4d32
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ trait AdminContextTrait {
* @return bool
*/
private function is_paypal_order_edit_page(): bool {
$post_id = wc_clean( wp_unslash( $_GET['id'] ?? $_GET['post'] ?? '' ) );
$post_id = wc_clean( wp_unslash( $_GET['id'] ?? $_GET['post'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( ! $post_id ) {
return false;
}