Skip to content

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