Changeset 55703 for trunk/src/wp-admin/menu-header.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu-header.php
r53092 r55703 128 128 if ( 'none' === $item[6] || 'div' === $item[6] ) { 129 129 $img = '<br />'; 130 } elseif ( 0 === strpos( $item[6], 'data:image/svg+xml;base64,' ) ) {130 } elseif ( str_starts_with( $item[6], 'data:image/svg+xml;base64,' ) ) { 131 131 $img = '<br />'; 132 132 // The value is base64-encoded data, so esc_attr() is used here instead of esc_url(). 133 133 $img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) . '\')"'; 134 134 $img_class = ' svg'; 135 } elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {135 } elseif ( str_starts_with( $item[6], 'dashicons-' ) ) { 136 136 $img = '<br />'; 137 137 $img_class = ' dashicons-before ' . sanitize_html_class( $item[6] );
Note: See TracChangeset
for help on using the changeset viewer.