[wp-trac] [WordPress Trac] #56229: Attempt to read property "user_nicename" on bool in link-template.php on line 265
WordPress Trac
noreply at wordpress.org
Tue Jul 19 00:31:45 UTC 2022
#56229: Attempt to read property "user_nicename" on bool in link-template.php on
line 265
--------------------------+------------------------------
Reporter: psimatrix | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 6.0
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* component: General => Permalinks
Old description:
> PHP Warning: Attempt to read property "user_nicename" on bool in
> /home/dcworld/public_html/wp-includes/link-template.php on line 265
>
> if the $authordata == false from get_userdata() then this will produce
> the error. If the current post object is not set, it will produce the
> error.
New description:
`PHP Warning: Attempt to read property "user_nicename" on bool in .../wp-
includes/link-template.php on line 265`
if the `$authordata == false` from `get_userdata()` then this will produce
the error. If the current post object is not set, it will produce the
error.
--
Comment:
([https://core.trac.wordpress.org/browser/tags/6.0/src/wp-includes/link-
template.php#L265 line 265] is within `get_permalink()`)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56229#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list