[wp-trac] [WordPress Trac] #31147: make sure $notoptions is an array before assigning array key value
WordPress Trac
noreply at wordpress.org
Thu Jun 25 19:00:53 UTC 2015
#31147: make sure $notoptions is an array before assigning array key value
--------------------------------+-----------------------------
Reporter: hauvong | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.3
Component: Options, Meta APIs | Version: 2.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------------+-----------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"32943"]:
{{{
#!CommitTicketReference repository="" revision="32943"
In `get_site_option()` and `get_option()`, ensure that `$notoptions` is an
array before writing to it. Prevents a flood of `Cannot use a scalar value
as an array`, because `$notoptions` is otherwise set to the result of
`wp_cache_get()`, which returns `mixed`.
Props hauvong.
Fixes #31147.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31147#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list