You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
To prevent issues like #2195 and generally help ensure we're only using expected data, I think it would be a better pattern to only permit registered params to be used within our callbacks.
In #2122, I included a pattern like this to prepare our data for the callback:
Notice it creates $prepared_args from the args registered to the request, instead of blindly accepting request params.
Also, if we included the transform_to mechanism, we could essentially remove WP_REST_Users_Controller::prepare_item_for_database() and many other internal transformation procedures.