Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #25672


Ignore:
Timestamp:
10/23/2013 10:21:18 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25672

    • Property Component changed from General to Warnings/Notices
    • Property Summary changed from WordPress › Support » How-To and Troubleshooting is_a() causing errors with get_users() to is_a() causing errors with get_users()
  • Ticket #25672 – Description

    initial v3  
    22
    33Running 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.
     4Use 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.
    55
    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])
    77
    8 Example: error if I use get_users() with the 'all_with_meta' option.
     8Example: error if I use `get_users()` with the 'all_with_meta' option.
    99
    10 Cause: is_a() called with non-object ($id)
     10Cause: `is_a()` called with non-object ($id)
    1111
    1212This 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)
     
    2222}}}
    2323
    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.
    2525
    2626Please can you fix this for increased compatibility in future versions - both with PHP and all the other plugins!