Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20044, comment 10


Ignore:
Timestamp:
03/08/2014 12:41:56 PM (12 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20044, comment 10

    initial v1  
    11Replying to [comment:9 jeremyfelt]:
    22> [https://core.trac.wordpress.org/attachment/ticket/20044/20044.4.diff 20044.4.diff] checks anything passed in the filter against an array of allowed search fields—post_title, post_content, post_name, and post_excerpt—and then sets up the query.
     3>
     4> I left out other posts fields from the allowed list as they don't seem applicable.
    35
    46Just to be clear, the filter in [attachment:20044.4.diff] effectively expands the available search fields to also include `post_excerpt` and `post_name` *only*. Does it not limit the usefulness of the filter to say, "You can customize the search fields, but are limited to choosing within this list of four?".
    57
    6 >
    7 > I left out other posts fields from the allowed list as they don't seem applicable. Docs added to the `query_search_fields` filter as well.
     8> Docs added to the `query_search_fields` filter as well.
    89
    910Very nice :)