includes/vendor/wp-api-functions.php 1 location
|
@@ 64-72 (lines=9) @@
|
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
if ( ! function_exists( 'register_api_field' ) ) { |
| 65 |
|
/** |
| 66 |
|
* Backwards compat shim |
| 67 |
|
*/ |
| 68 |
|
function register_api_field( $object_type, $attributes, $args = array() ) { |
| 69 |
|
_deprecated_function( 'register_api_field', 'WPAPI-2.0', 'register_rest_field' ); |
| 70 |
|
register_rest_field( $object_type, $attributes, $args ); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if ( ! function_exists( 'rest_validate_request_arg' ) ) { |
| 75 |
|
/** |
includes/vendor/wp-rest-functions.php 1 location
|
@@ 140-148 (lines=9) @@
|
| 137 |
|
} |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
if ( ! function_exists( 'register_api_field' ) ) { |
| 141 |
|
/** |
| 142 |
|
* Backwards compat shim |
| 143 |
|
*/ |
| 144 |
|
function register_api_field( $object_type, $attributes, $args = array() ) { |
| 145 |
|
_deprecated_function( 'register_api_field', 'WPAPI-2.0', 'register_rest_field' ); |
| 146 |
|
register_rest_field( $object_type, $attributes, $args ); |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if ( ! function_exists( 'rest_validate_request_arg' ) ) { |
| 151 |
|
/** |