Changeset 49396 for branches/5.0/src/wp-includes/meta.php
- Timestamp:
- 10/29/2020 06:50:55 PM (5 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/meta.php
r43729 r49396 994 994 * @return bool True if the key is protected, false otherwise. 995 995 */ 996 function is_protected_meta( $meta_key, $meta_type = null ) { 997 $protected = ( '_' == $meta_key[0] ); 996 function is_protected_meta( $meta_key, $meta_type = '' ) { 997 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 998 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 998 999 999 1000 /**
Note: See TracChangeset
for help on using the changeset viewer.