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