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

WordPress Trac noreply at wordpress.org
Sat Sep 9 17:41:59 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:
---------------------------------------------+-------------------------

Comment (by ramiy):

 @swissspidy I think the `return` output can be more readable.

 Replace:

 `return ! empty( $results ) ? $results : false; `

 With:

 `return empty( $results ) ? false : $results;`

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


More information about the wp-trac mailing list