Add Post::clone() method for shallow copying a Post #18

Merged
vlw merged 1 commit from refs/pull/18/head into master 2026-02-24 11:52:13 +01:00
vlw commented 2026-02-24 11:01:36 +01:00 (Migrated from codeberg.org)

This PR adds a new static method Post::clone() which takes a Post instance as an argument and creates a new shallow copy of that Post. The copied Post is then returned from this method.

This PR adds a new static method `Post::clone()` which takes a `Post` instance as an argument and creates a new shallow copy of that Post. The copied Post is then returned from this method.
Sign in to join this conversation.
No reviewers
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!18
No description provided.