WordPress.org

Make WordPress Core

Ticket #47026: 47026.diff

File 47026.diff, 2.0 KB (added by mukesh27, 5 months ago)

Patch.

  • wp-admin/includes/file.php

    diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
    index c87b38e839..2c794c1ea2 100644
    a b function _wp_handle_upload( &$file, $overrides, $time, $action ) { 
    742742        }
    743743
    744744        /*
    745          * This may not have orignially been intended to be overrideable,
     745         * This may not have originally been intended to be overridable,
    746746         * but historically has been.
    747747         */
    748748        if ( isset( $overrides['upload_error_strings'] ) ) {
    function verify_file_md5( $filename, $expected_md5 ) { 
    11271127 * @param string|array $signatures          A Signature provided for the file.
    11281128 * @param string       $filename_for_errors A friendly filename for errors. Optional.
    11291129 *
    1130  * @return bool|WP_Error true on success, false if verificaiton not attempted, or WP_Error describing an error condition.
     1130 * @return bool|WP_Error true on success, false if verification not attempted, or WP_Error describing an error condition.
    11311131 */
    11321132function verify_file_signature( $filename, $signatures, $filename_for_errors = false ) {
    11331133        if ( ! $filename_for_errors ) {
    All at ###SITENAME### 
    24422442}
    24432443
    24442444/**
    2445  * Intercept personal data exporter page ajax responses in order to assemble the personal data export file.
     2445 * Intercept personal data exporter page Ajax responses in order to assemble the personal data export file.
    24462446 * @see wp_privacy_personal_data_export_page
    24472447 * @since 4.9.6
    24482448 *
    All at ###SITENAME### 
    24582458function wp_privacy_process_personal_data_export_page( $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key ) {
    24592459        /* Do some simple checks on the shape of the response from the exporter.
    24602460         * If the exporter response is malformed, don't attempt to consume it - let it
    2461          * pass through to generate a warning to the user by default ajax processing.
     2461         * pass through to generate a warning to the user by default Ajax processing.
    24622462         */
    24632463        if ( ! is_array( $response ) ) {
    24642464                return $response;