| @@ 190-196 (lines=7) @@ | ||
| 187 | $args = wp_parse_args( $args, $defaults ); |
|
| 188 | ||
| 189 | $names = array(); |
|
| 190 | foreach( $args['prefixes'] as $p ) { |
|
| 191 | $found = $this->get_fields( $p ); |
|
| 192 | if ( $found ) { |
|
| 193 | foreach( $found as $f ) |
|
| 194 | $names[] = $f; |
|
| 195 | } |
|
| 196 | } |
|
| 197 | ||
| 198 | if ( empty( $names ) ) |
|
| 199 | return false; |
|
| @@ 290-296 (lines=7) @@ | ||
| 287 | $args = wp_parse_args( $args, $defaults ); |
|
| 288 | ||
| 289 | $tags = array(); |
|
| 290 | foreach( $args['prefixes'] as $p ) { |
|
| 291 | $found = $this->get_fields( $p ); |
|
| 292 | if ( $found ) { |
|
| 293 | foreach( $found as $f ) |
|
| 294 | $tags[] = $f; |
|
| 295 | } |
|
| 296 | } |
|
| 297 | ||
| 298 | if ( empty( $tags ) ) |
|
| 299 | return false; |
|