Thank you. It has been fixed.
Thread Starter
ricjoh
(@ricjoh)
Thanks, but…
I don’t think you understood both parts. You are using get_current_screen(), but I still get the error, because you’re not ensuring it’s an object.
Trying to get property 'id' of non-object in /web/html/kmccontrols.com/wp-content/plugins/wp-sort-order/inc/hooks.php on line 57
It’s being called by a script where there is no screen set.
Make line 57 read:
if ( ! is_object( $screen ) or 'users' != $screen->id )
So if there’s not a screen defined, it won’t fail.
-
This reply was modified 6 years, 3 months ago by
ricjoh.
Correct. I am using it in a couple of other plugins, i will fix it there as well. Thank you @ricjoh so much.
I have updated in the same version, kindly remove and install the plugin again.
Thread Starter
ricjoh
(@ricjoh)
No problem. If you’re on a linux box, tail your error log while you’re developing.
I have updated in the same version, kindly remove and install the plugin again.