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