PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Models/Payment.php +2 -1 2.2.02.4.0 View file →
@@ -146,9 +146,9 @@
146 146 $field_name = $this->camelCaseToSnakeCase(substr($name, 3)); // Remove 'has' prefix
147 147 return !empty($this->__get($field_name));
148 148 }
149 149
150 - throw new \BadMethodCallException("Method $name does not exist");
150 + throw new \BadMethodCallException(esc_html("Method $name does not exist"));
151 151 }
152 152
153 153 /**
154 154 * Convert camelCase to snake_case
@@ -227,8 +227,9 @@
227 227 if (isset($data['invoice_id']) && $data['invoice_id']) {
228 228 $invoice = new \EasyInvoice\Models\Invoice($data['invoice_id']);
229 229 if ($invoice->exists()) {
230 230 $post_title = sprintf(
231 + /* translators: %s: document number. */
231 232 __('Payment for Invoice %s', 'easy-invoice'),
232 233 $invoice->getNumber()
233 234 );
234 235 wp_update_post([