[wp-trac] [WordPress Trac] #27489: If non-string passed to taxonomy_exists() php throws warning

WordPress Trac noreply at wordpress.org
Sat Mar 22 15:29:50 UTC 2014


#27489: If non-string passed to taxonomy_exists() php throws warning
--------------------------+-----------------------------
 Reporter:  jackreichert  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 To reproduce the bug pass the object returned from get_object_taxonomies()
 to get_terms().

 Result, received the following error:

 {{{
 [Sat Mar 22 08:21:10 2014] [error] [client 192.168.159.1] PHP Warning:
 Illegal offset type in isset or empty in /var/www/html/wordpress/wp-
 includes/taxonomy.php on line 226, referer: http://localhost/wp-
 admin/about.php
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27489>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list