Changeset 43108 for branches/4.9/src/wp-admin/includes/file.php
- Timestamp:
- 05/02/2018 03:33:22 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/file.php
r43096 r43108 1840 1840 1841 1841 foreach ( (array) $group_item_data as $group_item_datum ) { 1842 $value = $group_item_datum['value']; 1843 // If it looks like a link, make it a link 1844 if ( false === strpos( $value, ' ' ) && ( 0 === strpos( $value, 'http://' ) || 0 === strpos( $value, 'https://' ) ) ) { 1845 $value = '<a href="' . esc_url( $value ) . '">' . esc_html( $value ) . '</a>'; 1846 } 1847 1842 1848 $group_html .= '<tr>'; 1843 1849 $group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>'; 1844 $group_html .= '<td>' . wp_kses( $ group_item_datum['value'], $allowed_tags, $allowed_protocols ) . '</td>';1850 $group_html .= '<td>' . wp_kses( $value, $allowed_tags, $allowed_protocols ) . '</td>'; 1845 1851 $group_html .= '</tr>'; 1846 1852 }
Note: See TracChangeset
for help on using the changeset viewer.