| @@ -310,8 +310,13 @@ | ||
| 310 | 310 | $query = new \WP_Query( $args ); |
| 311 | 311 | |
| 312 | 312 | $posts = []; |
| 313 | 313 | foreach ( $query->posts as $post ) { |
| 314 | + /** | |
| 315 | + * The post object. | |
| 316 | + * | |
| 317 | + * @var \WP_Post $post | |
| 318 | + */ | |
| 314 | 319 | $posts[ $post->ID ] = $post->post_title; |
| 315 | 320 | } |
| 316 | 321 | |
| 317 | 322 | $results = [ |