Changeset 54551 for branches/4.0
- Timestamp:
- 10/17/2022 05:49:25 PM (2 years ago)
- Location:
- branches/4.0
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/4.0/src/wp-includes/comment.php
r29469 r54551 1917 1917 return 0; 1918 1918 } 1919 1920 $filter_comment = false; 1921 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1922 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1923 } 1924 1925 if ( $filter_comment ) { 1926 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1927 } 1928 1919 1929 // Escape data pulled from DB. 1920 1930 $comment = wp_slash($comment); … … 1926 1936 1927 1937 $commentarr = wp_filter_comment( $commentarr ); 1938 1939 if ( $filter_comment ) { 1940 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1941 } 1928 1942 1929 1943 // Now extract the merged array. -
branches/4.0/src/wp-includes/default-widgets.php
r33531 r54551 1019 1019 if ( is_wp_error($rss) ) { 1020 1020 if ( is_admin() || current_user_can('manage_options') ) 1021 echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) . '</p>';1021 echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), esc_html( $rss->get_error_message() ) ) . '</p>'; 1022 1022 return; 1023 1023 } … … 1129 1129 1130 1130 if ( ! empty( $args['error'] ) ) { 1131 echo '<p class="widget-error"><strong>' . sprintf( __( 'RSS Error: %s' ), $args['error']) . '</strong></p>';1131 echo '<p class="widget-error"><strong>' . sprintf( __( 'RSS Error: %s' ), esc_html( $args['error'] ) ) . '</strong></p>'; 1132 1132 } 1133 1133 -
branches/4.0/src/wp-includes/functions.php
r46502 r54551 2437 2437 } else { 2438 2438 $html = __( 'Are you sure you want to do this?' ); 2439 if ( wp_get_referer() ) 2440 $html .= "</p><p><a href='" . esc_url( remove_query_arg( 'updated', wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; 2439 if ( wp_get_referer() ) { 2440 $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() ); 2441 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 2442 $html .= '</p><p>'; 2443 $html .= sprintf( 2444 '<a href="%s">%s</a>', 2445 esc_url( $wp_http_referer ), 2446 __( 'Please try again.' ) 2447 ); 2448 } 2441 2449 } 2442 2450 -
branches/4.0/src/wp-includes/pluggable.php
r47968 r54551 351 351 $phpmailer->ClearCustomHeaders(); 352 352 $phpmailer->ClearReplyTos(); 353 $phpmailer->Body = ''; 354 $phpmailer->AltBody = ''; 353 355 354 356 // From email and name -
branches/4.0/src/wp-mail.php
r39780 r54551 60 60 wp_die( __('There doesn’t seem to be any new mail.') ); 61 61 } 62 63 // Always run as an unauthenticated user. 64 wp_set_current_user( 0 ); 62 65 63 66 for ( $i = 1; $i <= $count; $i++ ) { … … 126 129 $author = sanitize_email($author); 127 130 if ( is_email($author) ) { 128 echo '<p>' . sprintf(__('Author is %s'), $author) . '</p>';129 131 $userdata = get_user_by('email', $author); 130 132 if ( ! empty( $userdata ) ) { -
branches/4.0/src/wp-trackback.php
r25616 r54551 13 13 wp( array( 'tb' => '1' ) ); 14 14 } 15 16 // Always run as an unauthenticated user. 17 wp_set_current_user( 0 ); 15 18 16 19 /**
Note: See TracChangeset
for help on using the changeset viewer.