Changeset 53050
- Timestamp:
- 04/01/2022 11:44:59 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu-header.php
r49193 r53050 124 124 */ 125 125 if ( ! empty( $item[6] ) ) { 126 $img = '<img src="' . $item[6]. '" alt="" />';126 $img = '<img src="' . esc_url( $item[6] ) . '" alt="" />'; 127 127 128 128 if ( 'none' === $item[6] || 'div' === $item[6] ) { … … 130 130 } elseif ( 0 === strpos( $item[6], 'data:image/svg+xml;base64,' ) ) { 131 131 $img = '<br />'; 132 $img_style = ' style="background-image:url(\'' . esc_ attr( $item[6] ) . '\')"';132 $img_style = ' style="background-image:url(\'' . esc_url( $item[6] ) . '\')"'; 133 133 $img_class = ' svg'; 134 134 } elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.