| @@ -42,8 +42,8 @@ | ||
| 42 | 42 | * @throws \BadMethodCallException |
| 43 | 43 | */ |
| 44 | 44 | protected static function throwBadMethodCallException( $method ) { |
| 45 | 45 | throw new BadMethodCallException( sprintf( |
| 46 | - esc_html__( 'Call to undefined method %s::%s()', 'timetics' ), static::class, $method | |
| 47 | - ) ); | |
| 46 | + esc_html__( 'Call to undefined method %s::%s()', 'timetics' ), static::class, esc_html( $method ) | |
| 47 | + ) ); | |
| 48 | 48 | } |
| 49 | 49 | } |