Changeset 54569 for branches/4.9/src/wp-includes/functions.php
- Timestamp:
- 10/17/2022 06:11:47 PM (2 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/functions.php
r46493 r54569 2378 2378 if ( $type !== $real_mime ) { 2379 2379 /* 2380 * Everything else including image/* and application/*: 2380 * Everything else including image/* and application/*: 2381 2381 * If the real content type doesn't match the file extension, assume it's dangerous. 2382 2382 */ … … 2387 2387 } 2388 2388 2389 // The mime type must be allowed 2389 // The mime type must be allowed 2390 2390 if ( $type ) { 2391 2391 $allowed = get_allowed_mime_types(); … … 2661 2661 $html = __( 'The link you followed has expired.' ); 2662 2662 if ( wp_get_referer() ) { 2663 $html .= '</p><p>'; 2664 $html .= sprintf( '<a href="%s">%s</a>', 2665 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ), 2663 $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() ); 2664 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 2665 $html .= '</p><p>'; 2666 $html .= sprintf( 2667 '<a href="%s">%s</a>', 2668 esc_url( $wp_http_referer ), 2666 2669 __( 'Please try again.' ) 2667 2670 );
Note: See TracChangeset
for help on using the changeset viewer.