Set and get the User class for Post->post_author instead of id integer #14

Open
opened 2026-02-22 14:50:07 +01:00 by vlw · 0 comments
vlw commented 2026-02-22 14:50:07 +01:00 (Migrated from codeberg.org)

codeberg.org/vlw/wp@0837975758/src/Posts/Post.php (L94-L97)

Since we now have the user tables added to this library, we should use the User class for setting and returning values from the Post->post_author column instead of a user ID.

https://codeberg.org/vlw/wp/src/commit/08379757589aecb2ff1cba4efdcc7d457d8b7d52/src/Posts/Post.php#L94-L97 Since we now have the user tables added to this library, we should use the `User` class for setting and returning values from the `Post->post_author` column instead of a user ID.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/wp#14
No description provided.