[wp-trac] [WordPress Trac] #42465: Add `permalink_structure` to REST API general site data

WordPress Trac noreply at wordpress.org
Thu Jan 11 19:28:07 UTC 2018


#42465: Add `permalink_structure` to REST API general site data
-------------------------+-----------------------
 Reporter:  schlessera   |       Owner:  pento
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  5.0
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  rest-api
-------------------------+-----------------------

Comment (by azaozz):

 > I'd argue that `permalink_structure` is useful for any client-side code
 that deals with permalinks

 I'd (partially) disagree :)

 The `permalink_structure` alone cannot be used to generate a permalink,
 see `wp_unique_post_slug()`. It can only be used to check if the default
 structure has been changed, which perhaps could be useful in some rare
 cases.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42465#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list