[wp-trac] [WordPress Trac] #42807: Add filter to modfiy wp.api versionString

WordPress Trac noreply at wordpress.org
Fri Dec 8 19:24:36 UTC 2017


#42807: Add filter to modfiy wp.api versionString
--------------------------+------------------------------
 Reporter:  mkaz          |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by adamsilverstein):

 @mkaz are you saying you tested changing the setup in gutenberg and it
 didn't work? you will probably also need to change it in the client by
 overwriting init so that its changed internally in the client for
 subsequent operations.

 I'm surprised retrieving the schema requires authentication, can that be
 made public? Can you use a filter to turn off the authentication
 requirement? You can also remove the schema localization and the client
 will retrieve the schema when it loads although this has potential issues.

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


More information about the wp-trac mailing list