- Timestamp:
- 07/03/2020 12:01:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r48104 r48282 93 93 $query = new WP_Query( $args ); 94 94 95 /**96 * Returns an array of posts.97 *98 * @var array<int, \WP_Post> $posts99 */100 $posts = $query->get_posts();101 102 95 $url_list = array(); 103 96 … … 123 116 } 124 117 125 foreach ( $ posts as $post ) {118 foreach ( $query->posts as $post ) { 126 119 $sitemap_entry = array( 127 120 'loc' => get_permalink( $post ),
Note: See TracChangeset
for help on using the changeset viewer.