From 8736271619ee9ff527a4c899f323ccc99f34e3a4 Mon Sep 17 00:00:00 2001 From: Damian Rawski Date: Fri, 1 Apr 2016 11:51:22 +0200 Subject: [PATCH] Fixed 'Argument 2 passed to wp_permastructure::parse_permalinks() must be an instance of WP_Post, instance of stdClass given' issue when wordpress-seo plugin was in use --- wp-permastructure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-permastructure.php b/wp-permastructure.php index 30e891e..3c401c3 100644 --- a/wp-permastructure.php +++ b/wp-permastructure.php @@ -241,7 +241,7 @@ public function add_permastructs( $rules ) { * * @return string The parsed permalink */ - public function parse_permalinks( $post_link, WP_Post $post, $leavename, $sample = false ) { + public function parse_permalinks( $post_link, $post, $leavename, $sample = false ) { // Make a stupid request and we'll do nothing. if ( !post_type_exists( $post->post_type ) )