Skip to content

Check that the class is actually a user#255

Open
stafflink-web-services wants to merge 1 commit intorankmath:masterfrom
stafflink-web-services:stafflink-web-services-catch-incorrect-objects-in-user
Open

Check that the class is actually a user#255
stafflink-web-services wants to merge 1 commit intorankmath:masterfrom
stafflink-web-services:stafflink-web-services-catch-incorrect-objects-in-user

Conversation

@stafflink-web-services
Copy link
Copy Markdown

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+.

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+.
@mattneal-stafflink
Copy link
Copy Markdown

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.

Copy link
Copy Markdown

@mattneal-stafflink mattneal-stafflink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dumb. Delete this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants