Yes, it clashes with Yoast SEO, but only if you try to edit a post in the backend in my installation.
I fixed it by changing the method to:
protected function get_queried_object_id() {
$id = (int) get_queried_object_id();
if ( ! $id ) {
if(!is_null($this->original_query)){
$id = (int) $this->original_query->get( 'page_id' );
}
else{
$id=0;
}
}
return $id;
}
Had no impact on my site so far
-
This reply was modified 4 years, 4 months ago by kbueltemann.