Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress SEO (YoastSEO) compatibility #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WordPress SEO (YoastSEO) compatibility #5

wants to merge 1 commit into from

Conversation

drawski
Copy link

@drawski drawski commented Apr 1, 2016

When calling get_permalink() with stdClass as first parameter (eg. a post retrieved by $wpdb->get_results()), following error occurs:

Catchable fatal error: Argument 2 passed to wp_permastructure::parse_permalinks() must be an instance of WP_Post, instance of stdClass given

In result, when WordPress SEO plugin was active, there was an error while generating sitemaps (500 Internal Server Error). This pull request fixes this issue.

…t be an instance of WP_Post, instance of stdClass given' issue when wordpress-seo plugin was in use
@roborourke roborourke mentioned this pull request Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant