[wp-trac] [WordPress Trac] #35762: Search in post excerpt

WordPress Trac noreply at wordpress.org
Mon Feb 22 07:49:41 UTC 2016


#35762: Search in post excerpt
--------------------------------------+-----------------------------
 Reporter:  sebastian.pisula          |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Query                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by swissspidy):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests
 * milestone:  Awaiting Review => Future Release


Comment:

 The previous patch was missing an additional `$like` passed to
 `$wpdb->prepare`.

 [attachment:35762.diff] adds that, and an accompanying test.

 I like the idea of also searching the post excerpt and have implemented
 this on a couple of sites myself. Perhaps even 4.5 material?

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


More information about the wp-trac mailing list