Changeset 43054 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 05/01/2018 01:44:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r43047 r43054 1977 1977 1978 1978 foreach ( (array) $group_item_data as $group_item_datum ) { 1979 $value = $group_item_datum['value']; 1980 // If it looks like a link, make it a link 1981 if ( false === strpos( $value, ' ' ) && ( 0 === strpos( $value, 'http://' ) || 0 === strpos( $value, 'https://' ) ) ) { 1982 $value = '<a href="' . esc_url( $value ) . '">' . esc_html( $value ) . '</a>'; 1983 } 1984 1979 1985 $group_html .= '<tr>'; 1980 1986 $group_html .= '<th>' . esc_html( $group_item_datum['name'] ) . '</th>'; 1981 $group_html .= '<td>' . wp_kses( $ group_item_datum['value'], $allowed_tags, $allowed_protocols ) . '</td>';1987 $group_html .= '<td>' . wp_kses( $value, $allowed_tags, $allowed_protocols ) . '</td>'; 1982 1988 $group_html .= '</tr>'; 1983 1989 }
Note: See TracChangeset
for help on using the changeset viewer.