The `is_object()` check would always be true in the second part of the conditional. This commit adds an `instanceof WP_User` check instead before accessing the `user_login` property. Follow-up to [41963], [https://mu.trac.wordpress.org/changeset/550 mu:550], [https://mu.trac.wordpress.org/changeset/1958 mu:1958], [12603]. Props justlevine. See #63268. Built from https://develop.svn.wordpress.org/trunk@60450 git-svn-id: http://core.svn.wordpress.org/trunk@59786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
90 KiB
90 KiB