Closed srtfisher closed 1 year ago
Thanks Sean!
Would it make more sense just to set it as an empty string anyway, regardless of the population of the display name?
@GaryJones sounds good to me, made that change
Thanks @srtfisher.
In what context (admin page? another request?, etc.) were you seeing the PHP Warning? (so I can reproduce it before applying the patch).
I'm seeing this crop up a lot when using is_author( 'name' )
on a guest author feed. the name argument is required to get the notice.
Ensure
nickname
is created on the object to prevent an issue withnickname
not existing on the Guest Author's object: https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-query.php#L4087