[wp-trac] [WordPress Trac] #32474: Facilitate widgets to be stored in posts instead of options
WordPress Trac
noreply at wordpress.org
Tue May 26 15:22:49 UTC 2015
#32474: Facilitate widgets to be stored in posts instead of options
-------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.3
Component: Widgets | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+--------------------------
Comment (by westonruter):
Replying to [comment:6 ocean90]:
> Based on [http://php.net/manual/en/book.spl.php PHP's manual]
`ArrayObject` and `ArrayIterator` are part of SPL which can be disabled
before 5.3. Looks like we need some class_exists() check here.
>
> WP_Theme uses `ArrayAccess` which isn't part of SPL.
Good question, but this isn't actually required in PHP starting with 5.1,
as I just checked: http://3v4l.org/SkMVd
The `instanceof` operator works on undefined classes in PHP≥5.1 as we can
see there, so I don't think we need any `class_exists()` checks added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32474#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list