Prep Plugin for release on WordPress.org (#23)
* Update translation text domain * 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. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
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.
|
||||
*
|
||||
@@ -1093,7 +1100,7 @@ class Line_Item implements \JsonSerializable {
|
||||
|
||||
$description = sprintf(
|
||||
// translators: %1$s the duration, and %2$s the duration unit (day, week, month, etc)
|
||||
_n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-ultimo'), // phpcs:ignore
|
||||
_n('%2$s', 'every %1$s %2$s', $this->get_duration(), 'wp-multisite-waas'), // phpcs:ignore
|
||||
$this->get_duration(),
|
||||
wu_get_translatable_string(($this->get_duration() <= 1 ? $this->get_duration_unit() : $this->get_duration_unit() . 's'))
|
||||
);
|
||||
@@ -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