Changes between Initial Version and Version 3 of Ticket #25672
- Timestamp:
- 10/23/2013 10:21:18 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25672
-
Property
Component
changed from
General
toWarnings/Notices
-
Property
Summary
changed from
WordPress › Support » How-To and Troubleshooting is_a() causing errors with get_users()
tois_a() causing errors with get_users()
-
Property
Component
changed from
-
Ticket #25672 – Description
initial v3 2 2 3 3 Running WordPress with Yii framework sub-site. 4 Use of is_a()function in capabilities.php (line 486) is causing errors, since causes instantiation of a WP_User object - which is unknown to Yii.4 Use of `is_a()` function in capabilities.php (line 486) is causing errors, since causes instantiation of a WP_User object - which is unknown to Yii. 5 5 6 is_a() was deprecated in PHP 5.0.0 - but did not cause this problem until PHP 5.3.7, when its behaviour changed: if first argument is not an object, __autoload()is triggered. (see php manual: [http://www.php.net/manual/en/function.is-a.php])6 `is_a()` was deprecated in PHP 5.0.0 - but did not cause this problem until PHP 5.3.7, when its behaviour changed: if first argument is not an object, `__autoload()` is triggered. (see php manual: [http://www.php.net/manual/en/function.is-a.php]) 7 7 8 Example: error if I use get_users()with the 'all_with_meta' option.8 Example: error if I use `get_users()` with the 'all_with_meta' option. 9 9 10 Cause: is_a()called with non-object ($id)10 Cause: `is_a()` called with non-object ($id) 11 11 12 12 This is at least inefficient - and in my situation fatal! Even when it works, this generates unnecessary log warnings in many cases (see all the other posts) … … 22 22 }}} 23 23 24 ... or equivalent, wherever is_a()may be called with a non-object.24 ... or equivalent, wherever `is_a()` may be called with a non-object. 25 25 26 26 Please can you fix this for increased compatibility in future versions - both with PHP and all the other plugins!