Changeset 4536 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php
- Timestamp:
- 12/15/2016 06:38:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php
r4470 r4536 2 2 3 3 function wporg_login_rest_routes() { 4 register_rest_route( 'wporg/v1', '/username-available/(?P<login> [^/]+)', array(4 register_rest_route( 'wporg/v1', '/username-available/(?P<login>.*)', array( 5 5 'methods' => WP_REST_Server::READABLE, 6 6 'callback' => 'wporg_login_rest_username_exists' … … 11 11 ) ); 12 12 13 register_rest_route( 'wporg/v1', '/email-in-use/(?P<email> [^/]*)', array(13 register_rest_route( 'wporg/v1', '/email-in-use/(?P<email>.*)', array( 14 14 'methods' => WP_REST_Server::READABLE, 15 15 'callback' => 'wporg_login_rest_email_in_use'
Note: See TracChangeset
for help on using the changeset viewer.