@@ 292-299 (lines=8) @@ | ||
289 | * |
|
290 | * @return array Meta keys filter values |
|
291 | */ |
|
292 | public static function get_allowed_post_meta_structured() { |
|
293 | return array( |
|
294 | 'meta_key' => array( |
|
295 | 'operator' => 'IN', |
|
296 | 'values' => array_map( 'esc_sql', self::get_setting( 'post_meta_whitelist' ) ), |
|
297 | ), |
|
298 | ); |
|
299 | } |
|
300 | ||
301 | /** |
|
302 | * Returns escaped SQL for blacklisted comment meta. |
|
@@ 322-329 (lines=8) @@ | ||
319 | * |
|
320 | * @return array Meta keys filter values |
|
321 | */ |
|
322 | public static function get_allowed_comment_meta_structured() { |
|
323 | return array( |
|
324 | 'meta_key' => array( |
|
325 | 'operator' => 'IN', |
|
326 | 'values' => array_map( 'esc_sql', self::get_setting( 'comment_meta_whitelist' ) ), |
|
327 | ), |
|
328 | ); |
|
329 | } |
|
330 | ||
331 | /** |
|
332 | * Returns escaped SQL for comments, excluding any spam comments. |