| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | $field_name = $this->camelCaseToSnakeCase(substr($name, 3)); // Remove 'has' prefix |
| 131 | 131 | return !empty($this->__get($field_name)); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - throw new \BadMethodCallException("Method $name does not exist"); | |
| 134 | + throw new \BadMethodCallException(esc_html("Method $name does not exist")); | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * Convert camelCase to snake_case |