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