Changeset 55703 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 05/02/2023 03:43:03 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r55293 r55703 940 940 // Check to see if $field is the parent of any item in $fields. 941 941 // A field "parent" should be accepted if "parent.child" is accepted. 942 if ( str pos( $accepted_field, "$field." ) === 0) {942 if ( str_starts_with( $accepted_field, "$field." ) ) { 943 943 return true; 944 944 } 945 945 // Conversely, if "parent" is accepted, all "parent.child" fields 946 946 // should also be accepted. 947 if ( str pos( $field, "$accepted_field." ) === 0) {947 if ( str_starts_with( $field, "$accepted_field." ) ) { 948 948 return true; 949 949 }
Note: See TracChangeset
for help on using the changeset viewer.