Changeset 48526 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 07/21/2020 12:01:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r48367 r48526 89 89 $arg_group = array_merge( $defaults, $arg_group ); 90 90 $arg_group['args'] = array_merge( $common_args, $arg_group['args'] ); 91 92 if ( ! isset( $arg_group['permission_callback'] ) ) { 93 _doing_it_wrong( 94 __FUNCTION__, 95 sprintf( 96 /* translators: 1. The REST API route being registered. 2. The argument name. 3. The suggested function name. */ 97 __( 'The REST API route definition for %1$s is missing the required %2$s argument. For REST API routes that are intended to be public, use %3$s as the permission callback.', 'LION' ), 98 '<code>' . $clean_namespace . '/' . trim( $route, '/' ) . '</code>', 99 '<code>permission_callback</code>', 100 '<code>__return_true</code>' 101 ), 102 '5.5.0' 103 ); 104 } 91 105 } 92 106
Note: See TracChangeset
for help on using the changeset viewer.