### Eclipse Workspace Patch 1.0
#P wordpress
|
|
|
|
| 830 | 830 | * |
| 831 | 831 | * @since 1.5.0 |
| 832 | 832 | */ |
| 833 | | class WP_Query { |
| | 833 | class WP_Query implements IteratorAggregate { |
| 834 | 834 | |
| 835 | 835 | /** |
| 836 | 836 | * Query vars set by the user |
| … |
… |
|
| 3513 | 3513 | global $wp_the_query; |
| 3514 | 3514 | return $wp_the_query === $this; |
| 3515 | 3515 | } |
| | 3516 | |
| | 3517 | /** |
| | 3518 | * Implementation of the IteratorAggregate interface (PHP 5 >= 5.0.0) <http://php.net/iteratoraggregate> |
| | 3519 | * |
| | 3520 | * @return Traversable |
| | 3521 | */ |
| | 3522 | function getIterator() { |
| | 3523 | return new ArrayIterator($this->posts); |
| | 3524 | } |
| 3516 | 3525 | } |
| 3517 | 3526 | |
| 3518 | 3527 | /** |