Make WordPress Core

Ticket #52027: 52027.2.patch

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