Changeset 49393 for branches/5.3/src/wp-includes/meta.php
- Timestamp:
- 10/29/2020 06:41:43 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/meta.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/meta.php
r46186 r49393 1037 1037 * @return bool Whether the meta key is considered protected. 1038 1038 */ 1039 function is_protected_meta( $meta_key, $meta_type = null ) { 1040 $protected = ( '_' == $meta_key[0] ); 1039 function is_protected_meta( $meta_key, $meta_type = '' ) { 1040 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1041 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 1041 1042 1042 1043 /**
Note: See TracChangeset
for help on using the changeset viewer.