Make WordPress Core

Ticket #57482: 57482.patch

File 57482.patch, 3.8 KB (added by upadalavipul, 4 years ago)
  • wp-includes/SimplePie/Item.php

     
    17051705                        $expression = null;
    17061706                        $framerate = null;
    17071707                        $height = null;
    1708                         $javascript = null;
    17091708                        $lang = null;
    17101709                        $length = null;
    17111710                        $medium = null;
    … …  
    17451744                                                        $expression = null;
    17461745                                                        $framerate = null;
    17471746                                                        $height = null;
    1748                                                         $javascript = null;
    17491747                                                        $lang = null;
    17501748                                                        $length = null;
    17511749                                                        $medium = null;
    … …  
    23672365                                                $expression = null;
    23682366                                                $framerate = null;
    23692367                                                $height = null;
    2370                                                 $javascript = null;
    23712368                                                $lang = null;
    23722369                                                $length = null;
    23732370                                                $medium = null;
    … …  
    27742771                                        $expression = null;
    27752772                                        $framerate = null;
    27762773                                        $height = null;
    2777                                         $javascript = null;
    27782774                                        $lang = null;
    27792775                                        $length = null;
    27802776                                        $medium = null;
    … …  
    28172813                                        $expression = null;
    28182814                                        $framerate = null;
    28192815                                        $height = null;
    2820                                         $javascript = null;
    28212816                                        $lang = null;
    28222817                                        $length = null;
    28232818                                        $medium = null;
    … …  
    28522847                                        $expression = null;
    28532848                                        $framerate = null;
    28542849                                        $height = null;
    2855                                         $javascript = null;
    28562850                                        $lang = null;
    28572851                                        $length = null;
    28582852                                        $medium = null;
  • wp-includes/SimplePie/Locator.php

     
    413413                        if (preg_match('/(feed|rss|rdf|atom|xml)/i', $value))
    414414                        {
    415415                                $this->checked_feeds++;
    416                                 $headers = array(
    417                                         'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
    418                                 );
     416                                // $headers = array(
     417                                //      'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
     418                                // );
    419419                                $feed = $this->registry->create('File', array($value, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen, $this->curl_options));
    420420                                if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed))
    421421                                {
  • wp-includes/class-wp-comment-query.php

     
    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 ) ) {
    … …  
    10131011         *
    10141012         * @since 4.4.0
    10151013         *
    1016          * @global wpdb $wpdb WordPress database abstraction object.
    1017          *
    10181014         * @param WP_Comment[] $comments Array of top-level comments whose descendants should be filled in.
    10191015         * @return array
    10201016         */
    10211017        protected function fill_descendants( $comments ) {
    1022                 global $wpdb;
    10231018
    10241019                $levels = array(
    10251020                        0 => wp_list_pluck( $comments, 'comment_ID' ),
  • wp-includes/feed-atom.php

     
    66 */
    77
    88header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true );
    9 $more = 1;
    109
    1110echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>';
    1211