[wp-trac] [WordPress Trac] #41825: wp_link_query not applied if method finds nothing

WordPress Trac noreply at wordpress.org
Fri Sep 8 14:02:45 UTC 2017


#41825: wp_link_query not applied if method finds nothing
---------------------------------------------+-------------------------
 Reporter:  msebel                           |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Editor                           |     Version:  3.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by swissspidy):

 * owner:   => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41346"]:
 {{{
 #!CommitTicketReference repository="" revision="41346"
 Editor: In `_WP_Editors::wp_link_query`, allow filtering empty results.

 Previously, it was not possible to hook into the `wp_link_query` filter to
 add custom entries when the
 query returned no posts.

 Props mitraval192, msebel.
 Fixes #41825.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41825#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list