--- wp-includes/class-wp-query.php.dist	2026-01-15 10:55:12.902165889 +0000
+++ wp-includes/class-wp-query.php	2026-01-15 11:05:47.036825459 +0000
@@ -2418,7 +2418,7 @@
 
 		// Author stuff for nice URLs.
 
-		if ( '' !== $query_vars['author_name'] ) {
+		if ( '' !== $query_vars['author_name'] && is_string( $query_vars['author_name'] ) ) {
 			if ( str_contains( $query_vars['author_name'], '/' ) ) {
 				$query_vars['author_name'] = explode( '/', $query_vars['author_name'] );
 				if ( $query_vars['author_name'][ count( $query_vars['author_name'] ) - 1 ] ) {
@@ -4039,7 +4039,7 @@
 			$this->queried_object_id = (int) $this->post->ID;
 		} elseif ( $this->is_author ) {
 			$author      = (int) $this->get( 'author' );
-			$author_name = $this->get( 'author_name' );
+			$author_name = ( is_string( $this->get( 'author_name' ) ) ) ? $this->get( 'author_name' ) :  false;
 
 			if ( $author ) {
 				$this->queried_object_id = $author;

