[wp-trac] [WordPress Trac] #61639: REST API: Posts/Pages endpoint prefixes private pages titles.
WordPress Trac
noreply at wordpress.org
Tue Jul 23 07:50:11 UTC 2024
#61639: REST API: Posts/Pages endpoint prefixes private pages titles.
--------------------------------------+--------------------------
Reporter: youknowriad | Owner: youknowriad
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+--------------------------
Changes (by youknowriad):
* owner: (none) => youknowriad
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"58783" 58783]:
{{{
#!CommitTicketReference repository="" revision="58783"
REST API: Remove post status prefix from REST API responses.
When using the /posts or /pages endpoints, for private posts or pages, you
get the following title property: { raw: "Some title", rendered: "Private:
Some title" }
this commit removes the prefix from rendered private posts titles (just
like what we do for protected posts)
Props youknowriad, swissspidy, timothyblynjacobs, sergeybiryukov,
ramonopoly.
Fixes #61639.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61639#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list