Changeset 49403 for branches/4.3/src/wp-includes/meta.php
- Timestamp:
- 10/29/2020 07:05:53 PM (5 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/meta.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.3/src/wp-includes/meta.php
r33231 r49403 1636 1636 * @return bool True if the key is protected, false otherwise. 1637 1637 */ 1638 function is_protected_meta( $meta_key, $meta_type = null ) { 1639 $protected = ( '_' == $meta_key[0] ); 1638 function is_protected_meta( $meta_key, $meta_type = '' ) { 1639 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1640 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 1640 1641 1641 1642 /**
Note: See TracChangeset
for help on using the changeset viewer.