Skip to content

Commit

Permalink
Merge pull request #966 from Automattic/fix/author-object-id-is-not-int
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Jul 30, 2023
2 parents 428a475 + 844e36b commit 7d1588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ public function fix_author_page( $selection ) {

if ( is_object( $authordata ) || ! empty( $term ) ) {
$wp_query->queried_object = $authordata;
$wp_query->queried_object_id = $authordata->ID;
$wp_query->queried_object_id = (int) $authordata->ID;
if ( ! is_paged() ) {
add_filter( 'pre_handle_404', '__return_true' );
}
Expand Down

0 comments on commit 7d1588f

Please sign in to comment.