[wp-trac] [WordPress Trac] #39293: WordPress REST API warnings
WordPress Trac
noreply at wordpress.org
Wed Dec 21 05:29:26 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
fixed-major |
-------------------------------------------------+-------------------------
Changes (by pento):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"39630"]:
{{{
#!CommitTicketReference repository="" revision="39630"
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.
Merge of [39620] to the 4.7 branch.
Props dreamon11, ChopinBach.
Fixes #39293.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39293#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list