equal
deleted
inserted
replaced
311 function get_users_drafts( $user_id ) { |
311 function get_users_drafts( $user_id ) { |
312 global $wpdb; |
312 global $wpdb; |
313 $query = $wpdb->prepare( "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = %d ORDER BY post_modified DESC", $user_id ); |
313 $query = $wpdb->prepare( "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = %d ORDER BY post_modified DESC", $user_id ); |
314 |
314 |
315 /** |
315 /** |
316 * Filters the user's drafts query string. |
316 * Filters the SQL query string for the user's drafts query. |
317 * |
317 * |
318 * @since 2.0.0 |
318 * @since 2.0.0 |
319 * |
319 * |
320 * @param string $query The user's drafts query string. |
320 * @param string $query The user's drafts query string. |
321 */ |
321 */ |