mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Use null coalescing operator instead of ternary
This commit is contained in:
parent
9e7ae5d16a
commit
1e6aa37216
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class PayUponInvoiceHelper {
|
|||
*/
|
||||
global $wp;
|
||||
|
||||
$order_id = isset( $wp->query_vars['order-pay'] ) ? (int) $wp->query_vars['order-pay'] : 0;
|
||||
$order_id = (int) ( $wp->query_vars['order-pay'] ?? 0 );
|
||||
if ( $order_id === 0 ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue