Ticket #21861: 21861.diff
| File 21861.diff, 490 bytes (added by CoenJacobs, 8 months ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/class-wp-editor.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/class-wp-editor.php (revision 21789) |
| 4 | +++ wp-includes/class-wp-editor.php (working copy) |
| 5 | @@ -731,6 +731,8 @@ |
| 6 | |
| 7 | $query['offset'] = $args['pagenum'] > 1 ? $query['posts_per_page'] * ( $args['pagenum'] - 1 ) : 0; |
| 8 | |
| 9 | + $query = apply_filters( 'wp_link_query_args', $query ); |
| 10 | + |
| 11 | // Do main query. |
| 12 | $get_posts = new WP_Query; |
| 13 | $posts = $get_posts->query( $query ); |
