seo-by-rank-math icon indicating copy to clipboard operation
seo-by-rank-math copied to clipboard

Check that the class is actually a user

Open stafflink-web-services opened this issue 1 year ago • 1 comments

Adds a check before getting the user meta_type and ensuring it's a user before proceeding with the user.

In some instances, Rank Math is catching a custom post type if other plugins are involved. For example, sometimes the post object is being fed into the class-user, and this object does not have a 'meta_type', causing a fatal error in PHP 8+.

stafflink-web-services avatar Oct 25 '23 00:10 stafflink-web-services

Cancel this one. I'm an idiot. One of my devs were doing something super small but super silly, so I went on a long path trying to fix something that wasn't broken. Ignore this request.

mattneal-stafflink avatar Dec 13 '23 23:12 mattneal-stafflink