Changeset 49405 for branches/4.1/src/wp-includes/meta.php
- Timestamp:
- 10/29/2020 07:09:27 PM (4 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-includes/meta.php
r30848 r49405 1551 1551 * @return bool True if the key is protected, false otherwise. 1552 1552 */ 1553 function is_protected_meta( $meta_key, $meta_type = null ) { 1554 $protected = ( '_' == $meta_key[0] ); 1553 function is_protected_meta( $meta_key, $meta_type = '' ) { 1554 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1555 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 1555 1556 1556 1557 /**
Note: See TracChangeset
for help on using the changeset viewer.