[wp-trac] [WordPress Trac] #42400: WP_User_Query is broken in 4.8.3

WordPress Trac noreply at wordpress.org
Fri Nov 3 11:30:31 UTC 2017

#42400: WP_User_Query is broken in 4.8.3
 Reporter:  amityweb      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  4.8.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:

Comment (by amityweb):

 I overlooked the function we used to change the LIKE as you stated sorry,
 for the record we have this code in a functions file and its to do with
 Advanced Custom Fields.

 function acf_posts_where( $where )
         $where->query_where = str_replace( "meta_key =
 'subject_specialism_%", "meta_key LIKE 'subject_specialism_%",
 $where->query_where );
         $where->query_where = str_replace( "meta_key =
 'publication_type_%", "meta_key LIKE 'publication_type_%",
 $where->query_where );
         return $where;

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

More information about the wp-trac mailing list