Changeset 54568 for branches/4.8/src/wp-includes/functions.php
- Timestamp:
- 10/17/2022 06:10:19 PM (2 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/4.8/src/wp-includes/functions.php
r46494 r54568 2370 2370 if ( $type !== $real_mime ) { 2371 2371 /* 2372 * Everything else including image/* and application/*: 2372 * Everything else including image/* and application/*: 2373 2373 * If the real content type doesn't match the file extension, assume it's dangerous. 2374 2374 */ … … 2379 2379 } 2380 2380 2381 // The mime type must be allowed 2381 // The mime type must be allowed 2382 2382 if ( $type ) { 2383 2383 $allowed = get_allowed_mime_types(); … … 2651 2651 $html = __( 'Are you sure you want to do this?' ); 2652 2652 if ( wp_get_referer() ) { 2653 $html .= '</p><p>'; 2654 $html .= sprintf( '<a href="%s">%s</a>', 2655 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ), 2653 $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() ); 2654 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 2655 $html .= '</p><p>'; 2656 $html .= sprintf( 2657 '<a href="%s">%s</a>', 2658 esc_url( $wp_http_referer ), 2656 2659 __( 'Please try again.' ) 2657 2660 );
Note: See TracChangeset
for help on using the changeset viewer.