Author.php does not pass hyphen in nicename
-
Hi!
So, I’ve recently noticed a problem.
Two users, one with nice_name ‘-4’ and the other with nice_name ‘4’ in the db.
When you call the query:
$author = get_user_by( ‘slug’, get_query_var( ‘author_name’ ) );
$author = $author->ID;You only get the the details for the user with nice_name ‘4’. The hyphen is somehow ignored.
I’d appreciate any thoughts.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Author.php does not pass hyphen in nicename’ is closed to new replies.