Ticket #18042: 18042.diff
File 18042.diff, 618 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-wp-editor.php
731 731 732 732 $query['offset'] = $args['pagenum'] > 1 ? $query['posts_per_page'] * ( $args['pagenum'] - 1 ) : 0; 733 733 734 $query = apply_filters( 'wp_link_query_args', $query ); 735 734 736 // Do main query. 735 737 $get_posts = new WP_Query; 736 738 $posts = $get_posts->query( $query ); … … 754 756 ); 755 757 } 756 758 757 return $results;759 return apply_filters( 'wp_link_query_results', $results ); 758 760 } 759 761 760 762 /**