Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@danielbachhuber
Copy link
Member

Introduces a register_api_field() function for backwards compat, which
calls _doing_it_wrong()

Fixes #1321

Introduces a `register_api_field()` function for backwards compat, which
calls `_doing_it_wrong()`
@danielbachhuber
Copy link
Member Author

@WP-API/amigos #reviewmerge

@joehoyle
Copy link
Member

@danielbachhuber are you thinking the backcompat function will also go into core when the time comes?

joehoyle added a commit that referenced this pull request Dec 10, 2015
Rename `register_api_field()` to `register_rest_field()`
@joehoyle joehoyle merged commit 856b4c9 into develop Dec 10, 2015
@joehoyle joehoyle deleted the 1321-rename-register-rest branch December 10, 2015 01:00
@danielbachhuber
Copy link
Member Author

are you thinking the backcompat function will also go into core when the time comes?

Nope. We can keep it in the plugin indefinitely. If the user has the plugin activated, then they'll be able to use the function. When they deactivate the plugin, they should update function calls.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants