[wp-trac] [WordPress Trac] #53913: Check theme API response is not an error before operating on it
WordPress Trac
noreply at wordpress.org
Wed Aug 11 13:01:00 UTC 2021
#53913: Check theme API response is not an error before operating on it
--------------------------+-----------------------------
Reporter: pierlo | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51601" 51601]:
{{{
#!CommitTicketReference repository="" revision="51601"
Themes: Make sure the theme API response is not an error before operating
on it in `themes_api()`.
This fixes a potential bug and avoids PHP warnings when `themes_api(
'query_themes' )` is called and a successful API response is not received.
Follow-up to [42632].
Props pierlo.
Fixes #53913.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53913#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list