| @@ -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([ |