| @@ -46,9 +46,8 @@ | ||
| 46 | 46 | if ( isset( $this->data[$name] ) ) { |
| 47 | 47 | return $this->data[$name]; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - /* translators: %s: Property name */ | |
| 51 | 50 | throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $name ) ) ); |
| 52 | 51 | } |
| 53 | 52 | |
| 54 | 53 | /** |
| @@ -60,9 +59,8 @@ | ||
| 60 | 59 | * @return void |
| 61 | 60 | */ |
| 62 | 61 | public function __set( $key, $value ) { |
| 63 | 62 | if ( ! isset( $this->data[$key] ) ) { |
| 64 | - /* translators: %s: Property name */ | |
| 65 | 63 | throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $key ) ) ); |
| 66 | 64 | } |
| 67 | 65 | |
| 68 | 66 | $this->data[$key] = $value; |
| @@ -160,9 +158,8 @@ | ||
| 160 | 158 | ]; |
| 161 | 159 | |
| 162 | 160 | if ( $meta ) { |
| 163 | 161 | $meta['relation'] = 'AND'; |
| 164 | - // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Meta query is necessary for filtering posts by meta fields | |
| 165 | 162 | $args['meta_query'] = $meta; |
| 166 | 163 | } |
| 167 | 164 | |
| 168 | 165 | $posts = get_posts( $args ); |