[wp-trac] [WordPress Trac] #26234: Passing array of taxonomies to the_terms() triggers "array to string" conversion warning

WordPress Trac noreply at wordpress.org
Mon Nov 25 14:52:58 UTC 2013


#26234: Passing array of taxonomies to the_terms() triggers "array to string"
conversion warning
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:  2.2
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |
-----------------------------+------------------------------

Comment (by johnjamesjacoby):

 One possible, albeit hacky, solution, is to concatenate the taxonomies
 into a cache key, and pass that around instead.

 Poking around in `update_object_term_cache()`will likely result in losing
 at least one finger (and probably a pinky toe with nail polish on it) and
 although I'm justifiably afraid to go digging, my incoming does so with
 reckless abandon.

 I'm also fully aware of the 5 year taxonomy plan, and prematurely agree
 that complicating things further for everyone until then is likely not
 worth the expense later. If nothing else, consider this a ticket for
 posterity until then.

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


More information about the wp-trac mailing list