Make WordPress Core

Ticket #52027: 52027.patch

File 52027.patch, 383 bytes (added by jontyravi, 4 years ago)

I have added patch of this ticket

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