← All changes
|
classes/async-operation/queries/image-optimization-operation-query.php
+1
-1
1.4.0
→
trunk
View file →
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | private array $query; |
| 18 | 18 | |
| 19 | 19 | public function set_hook( string $hook ): self { |
| 20 | 20 | if ( ! in_array( $hook, Async_Operation_Hook::get_values(), true ) ) { |
| 21 | - throw new TypeError( "Hook $hook is not a part of Async_Operation_Hook values" ); | |
| 21 | + throw new TypeError( esc_html( "Hook $hook is not a part of Async_Operation_Hook values" ) ); | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | $this->query['hook'] = $hook; |
| 25 | 25 | |