Changeset 49387
- Timestamp:
- 10/29/2020 06:05:21 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
-
. (modified) (1 prop)
-
src/wp-includes/meta.php (modified) (1 diff)
-
tests/phpunit/tests/meta/isProtectedMeta.php (copied) (copied from branches/5.5/tests/phpunit/tests/meta/isProtectedMeta.php)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.5 merged: 49378,49381
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/meta.php
r49193 r49387 1160 1160 */ 1161 1161 function is_protected_meta( $meta_key, $meta_type = '' ) { 1162 $protected = ( '_' === $meta_key[0] ); 1162 $sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key ); 1163 $protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] ); 1163 1164 1164 1165 /**
Note: See TracChangeset
for help on using the changeset viewer.