| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Base; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | use BadMethodCallException; |
| 10 | 12 | use Timetics\Base\PostModel; |
| 11 | 13 | |
| 12 | 14 | /** |
| @@ -42,8 +44,9 @@ | ||
| 42 | 44 | * @throws \BadMethodCallException |
| 43 | 45 | */ |
| 44 | 46 | protected static function throwBadMethodCallException( $method ) { |
| 45 | 47 | throw new BadMethodCallException( sprintf( |
| 46 | - esc_html__( 'Call to undefined method %s::%s()', 'timetics' ), static::class, $method | |
| 48 | + /* translators: %1$s: Class name, %2$s: Method name */ | |
| 49 | + esc_html__( 'Call to undefined method %1$s::%2$s()', 'timetics' ), static::class, esc_html( $method ) | |
| 47 | 50 | ) ); |
| 48 | 51 | } |
| 49 | 52 | } |