Changeset 55053
- Timestamp:
- 01/11/2023 03:21:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r54933 r55053 1687 1687 */ 1688 1688 function wp_kses_bad_protocol( $content, $allowed_protocols ) { 1689 $content = wp_kses_no_null( $content ); 1689 $content = wp_kses_no_null( $content ); 1690 1691 // Short-circuit if the string starts with `https://` or `http://`. Most common cases. 1692 if ( 1693 ( str_starts_with( $content, 'https://' ) && in_array( 'https', $allowed_protocols, true ) ) || 1694 ( str_starts_with( $content, 'http://' ) && in_array( 'http', $allowed_protocols, true ) ) 1695 ) { 1696 return $content; 1697 } 1698 1690 1699 $iterations = 0; 1691 1700
Note: See TracChangeset
for help on using the changeset viewer.