WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37202, comment 1


Ignore:
Timestamp:
06/27/2016 10:08:21 PM (5 years ago)
Author:
henry.wright
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37202, comment 1

    initial v1  
    11I've traced the issue back to the use of the {{{$authordata}}} global, which is used inside {{{get_the_author()}}}.
    22
    3 Dumping {{{$authordata}}} in the author template and then visiting a user's archive I get either an object of type {{{WP_User}}} (for users who have posted) and {{{null}}} (for users who haven't posted).
     3Dumping {{{$authordata}}} in the author template and then visiting a user's archive I get either an object of type {{{WP_User}}} (for users who have posted) or {{{null}}} (for users who haven't posted).