| @@ -140,9 +140,9 @@ | ||
| 140 | 140 | $field_name = $this->camelCaseToSnakeCase(substr($name, 3)); // Remove 'has' prefix |
| 141 | 141 | return !empty($this->__get($field_name)); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - throw new \BadMethodCallException("Method $name does not exist"); | |
| 144 | + throw new \BadMethodCallException(esc_html("Method $name does not exist")); | |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * Convert camelCase to snake_case |