Changeset 49394 for branches/5.2/src/wp-includes/meta.php
- Timestamp:
- 10/29/2020 06:44:12 PM (4 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.2/src/wp-includes/meta.php
r45064 r49394 1031 1031 * @return bool Whether the meta key is considered protected. 1032 1032 */ 1033 function is_protected_meta( $meta_key, $meta_type = null ) { 1034 $protected = ( '_' == $meta_key[0] ); 1033 function is_protected_meta( $meta_key, $meta_type = '' ) { 1034 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1035 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 1035 1036 1036 1037 /**
Note: See TracChangeset
for help on using the changeset viewer.