[wp-trac] [WordPress Trac] #39293: WordPress REST API warnings
WordPress Trac
noreply at wordpress.org
Tue Dec 20 00:55:05 UTC 2016
#39293: WordPress REST API warnings
---------------------------------------------+-----------------------
Reporter: dreamon11 | Owner: jnylen0
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.1
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------
Changes (by jnylen0):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"39620"]:
{{{
#!CommitTicketReference repository="" revision="39620"
REST API: Fix PHP warnings when `get_theme_support( 'post-formats' )` is
not an array.
If `add_theme_support( 'post-formats' )` is called with no additional
arguments, then `get_theme_support( 'post-formats' )` returns `true`
rather
than an array of supported formats. Avoid generating PHP warnings in this
situation.
Props dreamon11, ChopinBach.
Fixes #39293.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39293#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list