Changeset 56132 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 07/04/2023 01:40:55 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r56031 r56132 4884 4884 4885 4885 case 'blog_charset': 4886 $value = preg_replace( '/[^a-zA-Z0-9_-]/', '', $value ); // Strips slashes. 4886 if ( is_string( $value ) ) { 4887 $value = preg_replace( '/[^a-zA-Z0-9_-]/', '', $value ); // Strips slashes. 4888 } else { 4889 $value = ''; 4890 } 4887 4891 break; 4888 4892 … … 4919 4923 4920 4924 case 'gmt_offset': 4921 $value = preg_replace( '/[^0-9:.-]/', '', $value ); // Strips slashes. 4925 if ( is_numeric( $value ) ) { 4926 $value = preg_replace( '/[^0-9:.-]/', '', $value ); // Strips slashes. 4927 } else { 4928 $value = ''; 4929 } 4922 4930 break; 4923 4931
Note: See TracChangeset
for help on using the changeset viewer.