[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
Tue Oct 13 16:39:49 UTC 2015
#30472: get_terms_to_edit() can return a WP_Error, but used as a string
--------------------------+-----------------------------
Reporter: dd32 | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35139"]:
{{{
#!CommitTicketReference repository="" revision="35139"
Taxonomy: `get_terms_to_edit()` can also return `false` or `WP_Error`.
Vars using it should be set to empty string when errors are returned to
avoid producing fatal errors when used in string operations.
Props valendesigns.
Fixes #30472.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30472#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list