Make WordPress Core

Ticket #59420: 59420.7.patch

File 59420.7.patch, 2.0 KB (added by viralsampat, 2 years ago)

I have checked above mentioned issue and I have added its patch.

  • src/wp-includes/ID3/module.audio-video.riff.php

    diff --git src/wp-includes/ID3/module.audio-video.riff.php src/wp-includes/ID3/module.audio-video.riff.php
    index e745ec65f4..77293423fb 100644
    class getid3_riff extends getid3_handler 
    16201620                                                        if (!$FoundAllChunksWeNeed) {
    16211621                                                                $WhereWeWere      = $this->ftell();
    16221622                                                                $AudioChunkHeader = $this->fread(12);
    1623                                                                 $AudioChunkStreamNum  =                              substr($AudioChunkHeader, 0, 2);
    16241623                                                                $AudioChunkStreamType =                              substr($AudioChunkHeader, 2, 2);
    16251624                                                                $AudioChunkSize       = getid3_lib::LittleEndian2Int(substr($AudioChunkHeader, 4, 4));
    16261625
  • src/wp-includes/class-wp-comment-query.php

    diff --git src/wp-includes/class-wp-comment-query.php src/wp-includes/class-wp-comment-query.php
    index dad512c419..91a4164e41 100644
    class WP_Comment_Query { 
    584584                if ( ! empty( $this->query_vars['include_unapproved'] ) ) {
    585585                        $include_unapproved = wp_parse_list( $this->query_vars['include_unapproved'] );
    586586
    587                         $unapproved_ids    = array();
    588                         $unapproved_emails = array();
    589587                        foreach ( $include_unapproved as $unapproved_identifier ) {
    590588                                // Numeric values are assumed to be user IDs.
    591589                                if ( is_numeric( $unapproved_identifier ) ) {
  • src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    diff --git src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
    index 23f9ada215..e1f5384f0d 100644
    class WP_REST_Revisions_Controller extends WP_REST_Controller { 
    406406                        return $parent;
    407407                }
    408408
    409                 $parent_post_type = get_post_type_object( $parent->post_type );
    410 
    411409                if ( ! current_user_can( 'delete_post', $parent->ID ) ) {
    412410                        return new WP_Error(
    413411                                'rest_cannot_delete',