WordPress.org

Make WordPress Core

Ticket #21861: 21861.diff

File 21861.diff, 490 bytes (added by CoenJacobs, 6 years ago)

Basic implementation of a filter for the arguments

  • wp-includes/class-wp-editor.php

     
    731731
    732732                $query['offset'] = $args['pagenum'] > 1 ? $query['posts_per_page'] * ( $args['pagenum'] - 1 ) : 0;
    733733
     734                $query = apply_filters( 'wp_link_query_args', $query );
     735
    734736                // Do main query.
    735737                $get_posts = new WP_Query;
    736738                $posts = $get_posts->query( $query );