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