[wp-trac] [WordPress Trac] #56294: WordPress search finds block name in comment

WordPress Trac noreply at wordpress.org
Sun Jan 29 18:49:06 UTC 2023


#56294: WordPress search finds block name in comment
--------------------------------------+------------------------------
 Reporter:  zodiac1978                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Database                  |     Version:  5.0
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  performance
--------------------------------------+------------------------------

Comment (by zodiac1978):

 I've put the code from above in a plugin:
 https://wordpress.org/plugins/ignore-block-name-in-search/

 For everyone looking for a fast solution to the problem.

 Still hoping to get some feedback if fiddling around with the
 `posts_where` filter is appropriate for WordPress core.

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


More information about the wp-trac mailing list