[wp-trac] [WordPress Trac] #26308: After the update from 3.5 to 3.7 I get Warning: preg_split() expects parameter 2 to be string, array given on search

WordPress Trac noreply at wordpress.org
Thu Nov 28 21:21:22 UTC 2013


#26308: After the update from 3.5 to 3.7 I get Warning: preg_split() expects
parameter 2 to be string, array given on search
--------------------------+------------------------------
 Reporter:  goranpejovic  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.7.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 The warning comes from the secong `preg_split()` in the custom taxonomy
 handling block in `WP_Query::parse_tax_query()`: [source:tags/3.7.1/src
 /wp-includes/query.php#L1738].

 Doesn't appear to be a regression. The code was introduced in [15613],
 modified in [15731], [15732], [15860], [15874], and [16259].

 The patch on #17737 solves the issue by discarding a custom taxonomy query
 var if it's an array instead of a string.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26308#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list