Changeset 55703 for trunk/src/wp-includes/kses.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r55677 r55703 1261 1261 * double hyphens `--` are not accepted by WordPress. 1262 1262 */ 1263 if ( str pos( $name_low, 'data-' ) === 0&& ! empty( $allowed_attr['data-*'] )1263 if ( str_starts_with( $name_low, 'data-' ) && ! empty( $allowed_attr['data-*'] ) 1264 1264 && preg_match( '/^data(?:-[a-z0-9_]+)+$/', $name_low, $match ) 1265 1265 ) {
Note: See TracChangeset
for help on using the changeset viewer.