Changeset 49378
- Timestamp:
- 10/29/2020 05:31:40 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5/src/wp-includes/meta.php
r48779 r49378 1160 1160 */ 1161 1161 function is_protected_meta( $meta_key, $meta_type = '' ) { 1162 $protected = ( '_' === $meta_key[0] ); 1162 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1163 $protected = strlen( $sanitized_key ) > 0 && ( '_' == $sanitized_key[0] ); 1163 1164 1164 1165 /**
Note: See TracChangeset
for help on using the changeset viewer.