[wp-trac] [WordPress Trac] #48816: Use get_bloginfo in the REST API index
WordPress Trac
noreply at wordpress.org
Wed Nov 27 19:35:40 UTC 2019
#48816: Use get_bloginfo in the REST API index
-------------------------------+-----------------------------
Reporter: TimothyBlynJacobs | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.4
Severity: normal | Keywords: 2nd-opinion
Focuses: |
-------------------------------+-----------------------------
The REST API provides data in the site "index" when making a request to
`https://example.org/wp-json`. This describes the site and the APIs
available. In particular it returns the name of the website, and the
tagline. These values are retrieved using `get_option` directly instead of
`get_bloginfo`.
Because this data would be used presentationally, it seems like it'd be
more useful if it returned the "presentation" version of these strings.
As far as I could tell, the index has more or less worked the same since
the GSOC version of the REST API, so I wasn't able to find any description
of why it was built that way.
I opened this because of
[https://github.com/WordPress/gutenberg/pull/18760 a Gutenberg PR] which
would display the site title.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48816>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list