Changeset 53092
- Timestamp:
- 04/07/2022 12:52:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu-header.php
r53061 r53092 129 129 $img = '<br />'; 130 130 } elseif ( 0 === strpos( $item[6], 'data:image/svg+xml;base64,' ) ) { 131 $img = '<br />'; 132 $img_style = ' style="background-image:url(\'' . esc_url( $item[6] ) . '\')"'; 131 $img = '<br />'; 132 // The value is base64-encoded data, so esc_attr() is used here instead of esc_url(). 133 $img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) . '\')"'; 133 134 $img_class = ' svg'; 134 135 } elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.