[wp-trac] [WordPress Trac] #18042: Need a way to override wp_link_query()

WordPress Trac noreply at wordpress.org
Thu Aug 8 07:01:17 UTC 2013


#18042: Need a way to override wp_link_query()
-------------------------+-----------------------------
 Reporter:  philfreo     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Editor       |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by CoenJacobs):

 Replying to [comment:22 SergeyBiryukov]:
 > [attachment:18042.2.diff] passes `$query` to the resulting filter too.

 Thanks, I've tested this patch against the current trunk, still works like
 a charm.

 Just curious: Any reason you prefer `wp_link_query` over
 `wp_link_query_results` in my original modified patch as posted here? Just
 because that's the function name, best practice to filter results via a
 similarly named filter?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/18042#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list