inc/fields/post.php
Method query
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function query( $meta, array $field ): array {
$args = wp_parse_args( $field['query_args'], [
'no_found_rows' => true,
'update_post_meta_cache' => false,
'update_post_term_cache' => false,
Method normalize
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function normalize( $field ) {
$field = wp_parse_args( $field, [
'post_type' => 'post',
'parent' => false,
'query_args' => [],