[wp-trac] [WordPress Trac] #30472: get_terms_to_edit() can return a WP_Error, but used as a string

WordPress Trac noreply at wordpress.org
Mon Nov 24 03:22:07 UTC 2014


#30472: get_terms_to_edit() can return a WP_Error, but used as a string
----------------------------+----------------------------
 Reporter:  dd32            |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Future Release
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  needs-patch
  Focuses:  template        |
----------------------------+----------------------------
 As noted in #28319 `get_terms_to_edit()` can return
 `string|bool|WP_Error`, but in a number of places we simply treat it as a
 string, causing a PHP Fatal.

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


More information about the wp-trac mailing list