Prep Plugin for release on WordPress.org
Escape everything that should be escaped. Add nonce checks where needed. Sanitize all inputs. Apply Code style changes across the codebase. Correct many deprecation notices. Optimize load order of many filters.
This commit is contained in:
@ -1079,6 +1079,13 @@ class Line_Item implements \JsonSerializable {
|
||||
$this->tax_label = $tax_label;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function get_date_created(): string {
|
||||
return $this->date_created;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the amount recurring in a human-friendly way.
|
||||
*
|
||||
@ -1164,7 +1171,7 @@ class Line_Item implements \JsonSerializable {
|
||||
}
|
||||
|
||||
// phpcs:disable;
|
||||
$query = $wpdb->prepare("
|
||||
$query = $wpdb->prepare( "
|
||||
SELECT m.wu_payment_id, m.meta_value as line_items, p.date_created
|
||||
FROM {$wpdb->base_prefix}wu_paymentmeta as m
|
||||
JOIN {$wpdb->base_prefix}wu_payments as p
|
||||
|
Reference in New Issue
Block a user