| 1 | Index: src/wp-includes/class-wp-query.php |
|---|
| 2 | ======================================== |
|---|
| 3 | --- a/src/wp-includes/class-wp-query.php |
|---|
| 4 | +++ b/src/wp-includes/class-wp-query.php |
|---|
| 5 | |
|---|
| 6 | * Retrieves an array of posts based on query variables. |
|---|
| 7 | * |
|---|
| 8 | * There are a few filters and actions that can be used to modify the post |
|---|
| 9 | * database query. |
|---|
| 10 | * |
|---|
| 11 | * @since 1.5.0 |
|---|
| 12 | * |
|---|
| 13 | + * @global wpdb $wpdb WordPress database abstraction object. |
|---|
| 14 | * |
|---|
| 15 | * @return WP_Post[]|int[] Array of post objects or post IDs. |
|---|
| 16 | */ |
|---|
| 17 | public function get_posts() { |
|---|
| 18 | |
|---|
| 19 | global $wpdb; |
|---|