Make WordPress Core

Ticket #12367: fix_assign_new_by_reference.diff

File fix_assign_new_by_reference.diff, 50.0 KB (added by mrtorrent, 14 years ago)

Fixes all instances of deprecated assignment by reference of new objects

  • wp-includes/cache.php

    diff --git wp-includes/cache.php wp-includes/cache.php
    index c79aa1e..f285be3 100644
    function wp_cache_incr( $key, $offset = 1, $group = '' ) { 
    137137 * @global WP_Object_Cache $wp_object_cache WordPress Object Cache
    138138 */
    139139function wp_cache_init() {
    140         $GLOBALS['wp_object_cache'] =& new WP_Object_Cache();
     140        $GLOBALS['wp_object_cache'] = new WP_Object_Cache();
    141141}
    142142
    143143/**
  • wp-includes/class-simplepie.php

    diff --git wp-includes/class-simplepie.php wp-includes/class-simplepie.php
    index 275033a..cddd09a 100644
    class SimplePie 
    735735        function SimplePie($feed_url = null, $cache_location = null, $cache_duration = null)
    736736        {
    737737                // Other objects, instances created here so we can set options on them
    738                 $this->sanitize =& new SimplePie_Sanitize;
     738                $this->sanitize = new SimplePie_Sanitize;
    739739
    740740                // Set options if they're passed to the constructor
    741741                if ($cache_location !== null)
    class SimplePie 
    11051105        {
    11061106                if (SimplePie_Misc::is_subclass_of($class, 'SimplePie_Sanitize'))
    11071107                {
    1108                         $this->sanitize =& new $class;
     1108                        $this->sanitize = new $class;
    11091109                        return true;
    11101110                }
    11111111                return false;
    class SimplePie 
    15991599                                                                {
    16001600                                                                        $headers['if-none-match'] = '"' . $this->data['headers']['etag'] . '"';
    16011601                                                                }
    1602                                                                 $file =& new $this->file_class($this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen);
     1602                                                                $file = new $this->file_class($this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen);
    16031603                                                                if ($file->success)
    16041604                                                                {
    16051605                                                                        if ($file->status_code === 304)
    class SimplePie 
    16401640                                        }
    16411641                                        else
    16421642                                        {
    1643                                                 $file =& new $this->file_class($this->feed_url, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen);
     1643                                                $file = new $this->file_class($this->feed_url, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen);
    16441644                                        }
    16451645                                }
    16461646                                // If the file connection has an error, set SimplePie::error to that and quit
    class SimplePie 
    16601660                                if (!$this->force_feed)
    16611661                                {
    16621662                                        // Check if the supplied URL is a feed, if it isn't, look for it.
    1663                                         $locate =& new $this->locator_class($file, $this->timeout, $this->useragent, $this->file_class, $this->max_checked_feeds, $this->content_type_sniffer_class);
     1663                                        $locate = new $this->locator_class($file, $this->timeout, $this->useragent, $this->file_class, $this->max_checked_feeds, $this->content_type_sniffer_class);
    16641664                                        if (!$locate->is_feed($file))
    16651665                                        {
    16661666                                                // We need to unset this so that if SimplePie::set_file() has been called that object is untouched
    class SimplePie 
    16901690
    16911691                                $headers = $file->headers;
    16921692                                $data = $file->body;
    1693                                 $sniffer =& new $this->content_type_sniffer_class($file);
     1693                                $sniffer = new $this->content_type_sniffer_class($file);
    16941694                                $sniffed = $sniffer->get_type();
    16951695                        }
    16961696                        else
    class SimplePie 
    17601760                                if ($utf8_data = SimplePie_Misc::change_encoding($data, $encoding, 'UTF-8'))
    17611761                                {
    17621762                                        // Create new parser
    1763                                         $parser =& new $this->parser_class();
     1763                                        $parser = new $this->parser_class();
    17641764
    17651765                                        // If it's parsed fine
    17661766                                        if ($parser->parse($utf8_data, 'UTF-8'))
    class SimplePie 
    19711971                                }
    19721972                                else
    19731973                                {
    1974                                         $file =& new $this->file_class($favicon, $this->timeout / 10, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);
     1974                                        $file = new $this->file_class($favicon, $this->timeout / 10, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);
    19751975
    19761976                                        if ($file->success && ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($file->status_code === 200 || $file->status_code > 206 && $file->status_code < 300)) && strlen($file->body) > 0)
    19771977                                        {
    1978                                                 $sniffer =& new $this->content_type_sniffer_class($file);
     1978                                                $sniffer = new $this->content_type_sniffer_class($file);
    19791979                                                if (substr($sniffer->get_type(), 0, 6) === 'image/')
    19801980                                                {
    19811981                                                        if ($cache->save(array('headers' => $file->headers, 'body' => $file->body)))
    class SimplePie 
    23742374                        {
    23752375                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    23762376                        }
    2377                         $categories[] =& new $this->category_class($term, $scheme, $label);
     2377                        $categories[] = new $this->category_class($term, $scheme, $label);
    23782378                }
    23792379                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category)
    23802380                {
    class SimplePie 
    23892389                        {
    23902390                                $scheme = null;
    23912391                        }
    2392                         $categories[] =& new $this->category_class($term, $scheme, null);
     2392                        $categories[] = new $this->category_class($term, $scheme, null);
    23932393                }
    23942394                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category)
    23952395                {
    2396                         $categories[] =& new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     2396                        $categories[] = new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    23972397                }
    23982398                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category)
    23992399                {
    2400                         $categories[] =& new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     2400                        $categories[] = new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    24012401                }
    24022402
    24032403                if (!empty($categories))
    class SimplePie 
    24452445                        }
    24462446                        if ($name !== null || $email !== null || $uri !== null)
    24472447                        {
    2448                                 $authors[] =& new $this->author_class($name, $uri, $email);
     2448                                $authors[] = new $this->author_class($name, $uri, $email);
    24492449                        }
    24502450                }
    24512451                if ($author = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'author'))
    class SimplePie 
    24672467                        }
    24682468                        if ($name !== null || $email !== null || $url !== null)
    24692469                        {
    2470                                 $authors[] =& new $this->author_class($name, $url, $email);
     2470                                $authors[] = new $this->author_class($name, $url, $email);
    24712471                        }
    24722472                }
    24732473                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author)
    24742474                {
    2475                         $authors[] =& new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     2475                        $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    24762476                }
    24772477                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author)
    24782478                {
    2479                         $authors[] =& new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     2479                        $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    24802480                }
    24812481                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author)
    24822482                {
    2483                         $authors[] =& new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     2483                        $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    24842484                }
    24852485
    24862486                if (!empty($authors))
    class SimplePie 
    25282528                        }
    25292529                        if ($name !== null || $email !== null || $uri !== null)
    25302530                        {
    2531                                 $contributors[] =& new $this->author_class($name, $uri, $email);
     2531                                $contributors[] = new $this->author_class($name, $uri, $email);
    25322532                        }
    25332533                }
    25342534                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'contributor') as $contributor)
    class SimplePie 
    25502550                        }
    25512551                        if ($name !== null || $email !== null || $url !== null)
    25522552                        {
    2553                                 $contributors[] =& new $this->author_class($name, $url, $email);
     2553                                $contributors[] = new $this->author_class($name, $url, $email);
    25542554                        }
    25552555                }
    25562556
    class SimplePie 
    29632963                                        $keys = array_keys($items);
    29642964                                        foreach ($keys as $key)
    29652965                                        {
    2966                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]);
     2966                                                $this->data['items'][] = new $this->item_class($this, $items[$key]);
    29672967                                        }
    29682968                                }
    29692969                                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'entry'))
    class SimplePie 
    29712971                                        $keys = array_keys($items);
    29722972                                        foreach ($keys as $key)
    29732973                                        {
    2974                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]);
     2974                                                $this->data['items'][] = new $this->item_class($this, $items[$key]);
    29752975                                        }
    29762976                                }
    29772977                                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'item'))
    class SimplePie 
    29792979                                        $keys = array_keys($items);
    29802980                                        foreach ($keys as $key)
    29812981                                        {
    2982                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]);
     2982                                                $this->data['items'][] = new $this->item_class($this, $items[$key]);
    29832983                                        }
    29842984                                }
    29852985                                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'item'))
    class SimplePie 
    29872987                                        $keys = array_keys($items);
    29882988                                        foreach ($keys as $key)
    29892989                                        {
    2990                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]);
     2990                                                $this->data['items'][] = new $this->item_class($this, $items[$key]);
    29912991                                        }
    29922992                                }
    29932993                                if ($items = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'item'))
    class SimplePie 
    29952995                                        $keys = array_keys($items);
    29962996                                        foreach ($keys as $key)
    29972997                                        {
    2998                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]);
     2998                                                $this->data['items'][] = new $this->item_class($this, $items[$key]);
    29992999                                        }
    30003000                                }
    30013001                        }
    class SimplePie_Item 
    33463346                        {
    33473347                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    33483348                        }
    3349                         $categories[] =& new $this->feed->category_class($term, $scheme, $label);
     3349                        $categories[] = new $this->feed->category_class($term, $scheme, $label);
    33503350                }
    33513351                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category)
    33523352                {
    class SimplePie_Item 
    33613361                        {
    33623362                                $scheme = null;
    33633363                        }
    3364                         $categories[] =& new $this->feed->category_class($term, $scheme, null);
     3364                        $categories[] = new $this->feed->category_class($term, $scheme, null);
    33653365                }
    33663366                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category)
    33673367                {
    3368                         $categories[] =& new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     3368                        $categories[] = new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    33693369                }
    33703370                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category)
    33713371                {
    3372                         $categories[] =& new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     3372                        $categories[] = new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    33733373                }
    33743374
    33753375                if (!empty($categories))
    class SimplePie_Item 
    34303430                        }
    34313431                        if ($name !== null || $email !== null || $uri !== null)
    34323432                        {
    3433                                 $contributors[] =& new $this->feed->author_class($name, $uri, $email);
     3433                                $contributors[] = new $this->feed->author_class($name, $uri, $email);
    34343434                        }
    34353435                }
    34363436                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'contributor') as $contributor)
    class SimplePie_Item 
    34523452                        }
    34533453                        if ($name !== null || $email !== null || $url !== null)
    34543454                        {
    3455                                 $contributors[] =& new $this->feed->author_class($name, $url, $email);
     3455                                $contributors[] = new $this->feed->author_class($name, $url, $email);
    34563456                        }
    34573457                }
    34583458
    class SimplePie_Item 
    34883488                        }
    34893489                        if ($name !== null || $email !== null || $uri !== null)
    34903490                        {
    3491                                 $authors[] =& new $this->feed->author_class($name, $uri, $email);
     3491                                $authors[] = new $this->feed->author_class($name, $uri, $email);
    34923492                        }
    34933493                }
    34943494                if ($author = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'author'))
    class SimplePie_Item 
    35103510                        }
    35113511                        if ($name !== null || $email !== null || $url !== null)
    35123512                        {
    3513                                 $authors[] =& new $this->feed->author_class($name, $url, $email);
     3513                                $authors[] = new $this->feed->author_class($name, $url, $email);
    35143514                        }
    35153515                }
    35163516                if ($author = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'author'))
    35173517                {
    3518                         $authors[] =& new $this->feed->author_class(null, null, $this->sanitize($author[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
     3518                        $authors[] = new $this->feed->author_class(null, null, $this->sanitize($author[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
    35193519                }
    35203520                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author)
    35213521                {
    3522                         $authors[] =& new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     3522                        $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    35233523                }
    35243524                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author)
    35253525                {
    3526                         $authors[] =& new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     3526                        $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    35273527                }
    35283528                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author)
    35293529                {
    3530                         $authors[] =& new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     3530                        $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    35313531                }
    35323532
    35333533                if (!empty($authors))
    class SimplePie_Item 
    38373837                                        {
    38383838                                                $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    38393839                                        }
    3840                                         $captions_parent[] =& new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
     3840                                        $captions_parent[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
    38413841                                }
    38423842                        }
    38433843                        elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
    class SimplePie_Item 
    38693869                                        {
    38703870                                                $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    38713871                                        }
    3872                                         $captions_parent[] =& new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
     3872                                        $captions_parent[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
    38733873                                }
    38743874                        }
    38753875                        if (is_array($captions_parent))
    class SimplePie_Item 
    38993899                                {
    39003900                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    39013901                                }
    3902                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label);
     3902                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label);
    39033903                        }
    39043904                        foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'category') as $category)
    39053905                        {
    class SimplePie_Item 
    39223922                                {
    39233923                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    39243924                                }
    3925                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label);
     3925                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label);
    39263926                        }
    39273927                        foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'category') as $category)
    39283928                        {
    class SimplePie_Item 
    39333933                                {
    39343934                                        $label = $this->sanitize($category['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT);
    39353935                                }
    3936                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label);
     3936                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label);
    39373937
    39383938                                if (isset($category['child'][SIMPLEPIE_NAMESPACE_ITUNES]['category']))
    39393939                                {
    class SimplePie_Item 
    39433943                                                {
    39443944                                                        $label = $this->sanitize($subcategory['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT);
    39453945                                                }
    3946                                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label);
     3946                                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label);
    39473947                                        }
    39483948                                }
    39493949                        }
    class SimplePie_Item 
    39653965                                {
    39663966                                        $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    39673967                                }
    3968                                 $copyrights_parent =& new $this->feed->copyright_class($copyright_url, $copyright_label);
     3968                                $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label);
    39693969                        }
    39703970                        elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright'))
    39713971                        {
    class SimplePie_Item 
    39793979                                {
    39803980                                        $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    39813981                                }
    3982                                 $copyrights_parent =& new $this->feed->copyright_class($copyright_url, $copyright_label);
     3982                                $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label);
    39833983                        }
    39843984
    39853985                        // CREDITS
    class SimplePie_Item 
    40064006                                        {
    40074007                                                $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    40084008                                        }
    4009                                         $credits_parent[] =& new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
     4009                                        $credits_parent[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
    40104010                                }
    40114011                        }
    40124012                        elseif ($credits = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'credit'))
    class SimplePie_Item 
    40324032                                        {
    40334033                                                $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    40344034                                        }
    4035                                         $credits_parent[] =& new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
     4035                                        $credits_parent[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
    40364036                                }
    40374037                        }
    40384038                        if (is_array($credits_parent))
    class SimplePie_Item 
    42214221                                        {
    42224222                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    42234223                                        }
    4224                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4224                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    42254225                                }
    42264226                        }
    42274227                        elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
    class SimplePie_Item 
    42344234                                        {
    42354235                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    42364236                                        }
    4237                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4237                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    42384238                                }
    42394239                        }
    42404240                        elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
    class SimplePie_Item 
    42554255                                        {
    42564256                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    42574257                                        }
    4258                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4258                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    42594259                                }
    42604260                        }
    42614261                        elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
    class SimplePie_Item 
    42684268                                        {
    42694269                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    42704270                                        }
    4271                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4271                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    42724272                                }
    42734273                        }
    42744274                        if (is_array($ratings_parent))
    class SimplePie_Item 
    42964296                                        {
    42974297                                                $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    42984298                                        }
    4299                                         $restrictions_parent[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4299                                        $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    43004300                                }
    43014301                        }
    43024302                        elseif ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
    class SimplePie_Item 
    43104310                                        {
    43114311                                                $restriction_relationship = 'deny';
    43124312                                        }
    4313                                         $restrictions_parent[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4313                                        $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    43144314                                }
    43154315                        }
    43164316                        elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction'))
    class SimplePie_Item 
    43324332                                        {
    43334333                                                $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    43344334                                        }
    4335                                         $restrictions_parent[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4335                                        $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    43364336                                }
    43374337                        }
    43384338                        elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
    class SimplePie_Item 
    43464346                                        {
    43474347                                                $restriction_relationship = 'deny';
    43484348                                        }
    4349                                         $restrictions_parent[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4349                                        $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    43504350                                }
    43514351                        }
    43524352                        if (is_array($restrictions_parent))
    class SimplePie_Item 
    45504550                                                                {
    45514551                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    45524552                                                                }
    4553                                                                 $captions[] =& new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
     4553                                                                $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
    45544554                                                        }
    45554555                                                        if (is_array($captions))
    45564556                                                        {
    class SimplePie_Item 
    45864586                                                                {
    45874587                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    45884588                                                                }
    4589                                                                 $captions[] =& new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
     4589                                                                $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
    45904590                                                        }
    45914591                                                        if (is_array($captions))
    45924592                                                        {
    class SimplePie_Item 
    46224622                                                                {
    46234623                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    46244624                                                                }
    4625                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label);
     4625                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label);
    46264626                                                        }
    46274627                                                }
    46284628                                                if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category']))
    class SimplePie_Item 
    46484648                                                                {
    46494649                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    46504650                                                                }
    4651                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label);
     4651                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label);
    46524652                                                        }
    46534653                                                }
    46544654                                                if (is_array($categories) && is_array($categories_parent))
    class SimplePie_Item 
    46774677                                                        {
    46784678                                                                $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    46794679                                                        }
    4680                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label);
     4680                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label);
    46814681                                                }
    46824682                                                elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
    46834683                                                {
    class SimplePie_Item 
    46914691                                                        {
    46924692                                                                $copyright_label = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    46934693                                                        }
    4694                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label);
     4694                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label);
    46954695                                                }
    46964696                                                else
    46974697                                                {
    class SimplePie_Item 
    47224722                                                                {
    47234723                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    47244724                                                                }
    4725                                                                 $credits[] =& new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
     4725                                                                $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
    47264726                                                        }
    47274727                                                        if (is_array($credits))
    47284728                                                        {
    class SimplePie_Item 
    47524752                                                                {
    47534753                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    47544754                                                                }
    4755                                                                 $credits[] =& new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
     4755                                                                $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
    47564756                                                        }
    47574757                                                        if (is_array($credits))
    47584758                                                        {
    class SimplePie_Item 
    49054905                                                                {
    49064906                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    49074907                                                                }
    4908                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4908                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    49094909                                                        }
    49104910                                                        if (is_array($ratings))
    49114911                                                        {
    class SimplePie_Item 
    49304930                                                                {
    49314931                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    49324932                                                                }
    4933                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     4933                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    49344934                                                        }
    49354935                                                        if (is_array($ratings))
    49364936                                                        {
    class SimplePie_Item 
    49624962                                                                {
    49634963                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    49644964                                                                }
    4965                                                                 $restrictions[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4965                                                                $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    49664966                                                        }
    49674967                                                        if (is_array($restrictions))
    49684968                                                        {
    class SimplePie_Item 
    49884988                                                                {
    49894989                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    49904990                                                                }
    4991                                                                 $restrictions[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     4991                                                                $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    49924992                                                        }
    49934993                                                        if (is_array($restrictions))
    49944994                                                        {
    class SimplePie_Item 
    50425042                                                        $title = $title_parent;
    50435043                                                }
    50445044
    5045                                                 $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);
     5045                                                $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);
    50465046                                        }
    50475047                                }
    50485048                        }
    class SimplePie_Item 
    51715171                                                                {
    51725172                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    51735173                                                                }
    5174                                                                 $captions[] =& new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
     5174                                                                $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);
    51755175                                                        }
    51765176                                                        if (is_array($captions))
    51775177                                                        {
    class SimplePie_Item 
    52075207                                                                {
    52085208                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    52095209                                                                }
    5210                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label);
     5210                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label);
    52115211                                                        }
    52125212                                                }
    52135213                                                if (is_array($categories) && is_array($categories_parent))
    class SimplePie_Item 
    52405240                                                        {
    52415241                                                                $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    52425242                                                        }
    5243                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label);
     5243                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label);
    52445244                                                }
    52455245                                                else
    52465246                                                {
    class SimplePie_Item 
    52715271                                                                {
    52725272                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    52735273                                                                }
    5274                                                                 $credits[] =& new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
     5274                                                                $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);
    52755275                                                        }
    52765276                                                        if (is_array($credits))
    52775277                                                        {
    class SimplePie_Item 
    53755375                                                                {
    53765376                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    53775377                                                                }
    5378                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value);
     5378                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value);
    53795379                                                        }
    53805380                                                        if (is_array($ratings))
    53815381                                                        {
    class SimplePie_Item 
    54075407                                                                {
    54085408                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    54095409                                                                }
    5410                                                                 $restrictions[] =& new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
     5410                                                                $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);
    54115411                                                        }
    54125412                                                        if (is_array($restrictions))
    54135413                                                        {
    class SimplePie_Item 
    54465446                                                        $title = $title_parent;
    54475447                                                }
    54485448
    5449                                                 $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);
     5449                                                $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);
    54505450                                        }
    54515451                                }
    54525452                        }
    class SimplePie_Item 
    54825482                                        }
    54835483
    54845484                                        // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
    5485                                         $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
     5485                                        $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
    54865486                                }
    54875487                        }
    54885488
    class SimplePie_Item 
    55175517                                        }
    55185518
    55195519                                        // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
    5520                                         $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
     5520                                        $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
    55215521                                }
    55225522                        }
    55235523
    class SimplePie_Item 
    55525552                                        }
    55535553
    55545554                                        // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
    5555                                         $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
     5555                                        $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
    55565556                                }
    55575557                        }
    55585558
    55595559                        if (sizeof($this->data['enclosures']) === 0 && ($url || $type || $length || $bitrate || $captions_parent || $categories_parent || $channels || $copyrights_parent || $credits_parent || $description_parent || $duration_parent || $expression || $framerate || $hashes_parent || $height || $keywords_parent || $lang || $medium || $player_parent || $ratings_parent || $restrictions_parent || $samplingrate || $thumbnails_parent || $title_parent || $width))
    55605560                        {
    55615561                                // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
    5562                                 $this->data['enclosures'][] =& new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
     5562                                $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);
    55635563                        }
    55645564
    55655565                        $this->data['enclosures'] = array_values(SimplePie_Misc::array_unique($this->data['enclosures']));
    class SimplePie_Source 
    58365836                        {
    58375837                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
    58385838                        }
    5839                         $categories[] =& new $this->item->feed->category_class($term, $scheme, $label);
     5839                        $categories[] = new $this->item->feed->category_class($term, $scheme, $label);
    58405840                }
    58415841                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category)
    58425842                {
    class SimplePie_Source 
    58515851                        {
    58525852                                $scheme = null;
    58535853                        }
    5854                         $categories[] =& new $this->item->feed->category_class($term, $scheme, null);
     5854                        $categories[] = new $this->item->feed->category_class($term, $scheme, null);
    58555855                }
    58565856                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category)
    58575857                {
    5858                         $categories[] =& new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     5858                        $categories[] = new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    58595859                }
    58605860                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category)
    58615861                {
    5862                         $categories[] =& new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     5862                        $categories[] = new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    58635863                }
    58645864
    58655865                if (!empty($categories))
    class SimplePie_Source 
    59075907                        }
    59085908                        if ($name !== null || $email !== null || $uri !== null)
    59095909                        {
    5910                                 $authors[] =& new $this->item->feed->author_class($name, $uri, $email);
     5910                                $authors[] = new $this->item->feed->author_class($name, $uri, $email);
    59115911                        }
    59125912                }
    59135913                if ($author = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'author'))
    class SimplePie_Source 
    59295929                        }
    59305930                        if ($name !== null || $email !== null || $url !== null)
    59315931                        {
    5932                                 $authors[] =& new $this->item->feed->author_class($name, $url, $email);
     5932                                $authors[] = new $this->item->feed->author_class($name, $url, $email);
    59335933                        }
    59345934                }
    59355935                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author)
    59365936                {
    5937                         $authors[] =& new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     5937                        $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    59385938                }
    59395939                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author)
    59405940                {
    5941                         $authors[] =& new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     5941                        $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    59425942                }
    59435943                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author)
    59445944                {
    5945                         $authors[] =& new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
     5945                        $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);
    59465946                }
    59475947
    59485948                if (!empty($authors))
    class SimplePie_Source 
    59905990                        }
    59915991                        if ($name !== null || $email !== null || $uri !== null)
    59925992                        {
    5993                                 $contributors[] =& new $this->item->feed->author_class($name, $uri, $email);
     5993                                $contributors[] = new $this->item->feed->author_class($name, $uri, $email);
    59945994                        }
    59955995                }
    59965996                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'contributor') as $contributor)
    class SimplePie_Source 
    60126012                        }
    60136013                        if ($name !== null || $email !== null || $url !== null)
    60146014                        {
    6015                                 $contributors[] =& new $this->item->feed->author_class($name, $url, $email);
     6015                                $contributors[] = new $this->item->feed->author_class($name, $url, $email);
    60166016                        }
    60176017                }
    60186018
    class SimplePie_Enclosure 
    64496449                $this->width = $width;
    64506450                if (class_exists('idna_convert'))
    64516451                {
    6452                         $idn =& new idna_convert;
     6452                        $idn = new idna_convert;
    64536453                        $parsed = SimplePie_Misc::parse_url($link);
    64546454                        $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']);
    64556455                }
    class SimplePie_File 
    76477647        {
    76487648                if (class_exists('idna_convert'))
    76497649                {
    7650                         $idn =& new idna_convert;
     7650                        $idn = new idna_convert;
    76517651                        $parsed = SimplePie_Misc::parse_url($url);
    76527652                        $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']);
    76537653                }
    class SimplePie_File 
    77087708                                        curl_close($fp);
    77097709                                        $this->headers = explode("\r\n\r\n", $this->headers, $info['redirect_count'] + 1);
    77107710                                        $this->headers = array_pop($this->headers);
    7711                                         $parser =& new SimplePie_HTTP_Parser($this->headers);
     7711                                        $parser = new SimplePie_HTTP_Parser($this->headers);
    77127712                                        if ($parser->parse())
    77137713                                        {
    77147714                                                $this->headers = $parser->headers;
    class SimplePie_File 
    77897789                                        }
    77907790                                        if (!$info['timed_out'])
    77917791                                        {
    7792                                                 $parser =& new SimplePie_HTTP_Parser($this->headers);
     7792                                                $parser = new SimplePie_HTTP_Parser($this->headers);
    77937793                                                if ($parser->parse())
    77947794                                                {
    77957795                                                        $this->headers = $parser->headers;
    class SimplePie_File 
    78087808                                                                {
    78097809                                                                        case 'gzip':
    78107810                                                                        case 'x-gzip':
    7811                                                                                 $decoder =& new SimplePie_gzdecode($this->body);
     7811                                                                                $decoder = new SimplePie_gzdecode($this->body);
    78127812                                                                                if (!$decoder->parse())
    78137813                                                                                {
    78147814                                                                                        $this->error = 'Unable to decode HTTP "gzip" stream';
    class SimplePie_Cache 
    86208620         */
    86218621        function create($location, $filename, $extension)
    86228622        {
    8623                 $location_iri =& new SimplePie_IRI($location);
     8623                $location_iri = new SimplePie_IRI($location);
    86248624                switch ($location_iri->get_scheme())
    86258625                {
    86268626                        case 'mysql':
    class SimplePie_Misc 
    93179317
    93189318        function parse_url($url)
    93199319        {
    9320                 $iri =& new SimplePie_IRI($url);
     9320                $iri = new SimplePie_IRI($url);
    93219321                return array(
    93229322                        'scheme' => (string) $iri->get_scheme(),
    93239323                        'authority' => (string) $iri->get_authority(),
    class SimplePie_Misc 
    93299329
    93309330        function compress_parse_url($scheme = '', $authority = '', $path = '', $query = '', $fragment = '')
    93319331        {
    9332                 $iri =& new SimplePie_IRI('');
     9332                $iri = new SimplePie_IRI('');
    93339333                $iri->set_scheme($scheme);
    93349334                $iri->set_authority($authority);
    93359335                $iri->set_path($path);
    class SimplePie_Misc 
    93409340
    93419341        function normalize_url($url)
    93429342        {
    9343                 $iri =& new SimplePie_IRI($url);
     9343                $iri = new SimplePie_IRI($url);
    93449344                return $iri->get_iri();
    93459345        }
    93469346
    class SimplePie_Misc 
    1086010860         */
    1086110861        function entities_decode($data)
    1086210862        {
    10863                 $decoder =& new SimplePie_Decode_HTML_Entities($data);
     10863                $decoder = new SimplePie_Decode_HTML_Entities($data);
    1086410864                return $decoder->parse();
    1086510865        }
    1086610866
    class SimplePie_Misc 
    1125611256                {
    1125711257                        if ($pos = strpos($data, "\x00\x00\x00\x3F\x00\x00\x00\x3E"))
    1125811258                        {
    11259                                 $parser =& new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', 'UTF-8'));
     11259                                $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', 'UTF-8'));
    1126011260                                if ($parser->parse())
    1126111261                                {
    1126211262                                        $encoding[] = $parser->encoding;
    class SimplePie_Misc 
    1126911269                {
    1127011270                        if ($pos = strpos($data, "\x3F\x00\x00\x00\x3E\x00\x00\x00"))
    1127111271                        {
    11272                                 $parser =& new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', 'UTF-8'));
     11272                                $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', 'UTF-8'));
    1127311273                                if ($parser->parse())
    1127411274                                {
    1127511275                                        $encoding[] = $parser->encoding;
    class SimplePie_Misc 
    1128211282                {
    1128311283                        if ($pos = strpos($data, "\x00\x3F\x00\x3E"))
    1128411284                        {
    11285                                 $parser =& new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16BE', 'UTF-8'));
     11285                                $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16BE', 'UTF-8'));
    1128611286                                if ($parser->parse())
    1128711287                                {
    1128811288                                        $encoding[] = $parser->encoding;
    class SimplePie_Misc 
    1129511295                {
    1129611296                        if ($pos = strpos($data, "\x3F\x00\x3E\x00"))
    1129711297                        {
    11298                                 $parser =& new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16LE', 'UTF-8'));
     11298                                $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16LE', 'UTF-8'));
    1129911299                                if ($parser->parse())
    1130011300                                {
    1130111301                                        $encoding[] = $parser->encoding;
    class SimplePie_Misc 
    1130811308                {
    1130911309                        if ($pos = strpos($data, "\x3F\x3E"))
    1131011310                        {
    11311                                 $parser =& new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));
     11311                                $parser = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));
    1131211312                                if ($parser->parse())
    1131311313                                {
    1131411314                                        $encoding[] = $parser->encoding;
    class SimplePie_IRI 
    1168311683                $relative = (string) $relative;
    1168411684                if ($relative !== '')
    1168511685                {
    11686                         $relative =& new SimplePie_IRI($relative);
     11686                        $relative = new SimplePie_IRI($relative);
    1168711687                        if ($relative->get_scheme() !== null)
    1168811688                        {
    1168911689                                $target = $relative;
    class SimplePie_IRI 
    1169711697                                }
    1169811698                                else
    1169911699                                {
    11700                                         $target =& new SimplePie_IRI('');
     11700                                        $target = new SimplePie_IRI('');
    1170111701                                        $target->set_scheme($base->get_scheme());
    1170211702                                        $target->set_userinfo($base->get_userinfo());
    1170311703                                        $target->set_host($base->get_host());
    class SimplePie_Parse_Date 
    1304913049                static $object;
    1305013050                if (!$object)
    1305113051                {
    13052                         $object =& new SimplePie_Parse_Date;
     13052                        $object = new SimplePie_Parse_Date;
    1305313053                }
    1305413054                return $object;
    1305513055        }
    class SimplePie_Locator 
    1408414084
    1408514085                if ($this->file->method & SIMPLEPIE_FILE_SOURCE_REMOTE)
    1408614086                {
    14087                         $sniffer =& new $this->content_type_sniffer_class($this->file);
     14087                        $sniffer = new $this->content_type_sniffer_class($this->file);
    1408814088                        if ($sniffer->get_type() !== 'text/html')
    1408914089                        {
    1409014090                                return null;
    class SimplePie_Locator 
    1413014130        {
    1413114131                if ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE)
    1413214132                {
    14133                         $sniffer =& new $this->content_type_sniffer_class($file);
     14133                        $sniffer = new $this->content_type_sniffer_class($file);
    1413414134                        $sniffed = $sniffer->get_type();
    1413514135                        if (in_array($sniffed, array('application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml')))
    1413614136                        {
    class SimplePie_Locator 
    1419414194                                if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !empty($link['attribs']['type']['data']) && in_array(strtolower(SimplePie_Misc::parse_mime($link['attribs']['type']['data'])), array('application/rss+xml', 'application/atom+xml'))) && !isset($feeds[$href]))
    1419514195                                {
    1419614196                                        $this->checked_feeds++;
    14197                                         $feed =& new $this->file_class($href, $this->timeout, 5, null, $this->useragent);
     14197                                        $feed = new $this->file_class($href, $this->timeout, 5, null, $this->useragent);
    1419814198                                        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))
    1419914199                                        {
    1420014200                                                $feeds[$href] = $feed;
    class SimplePie_Locator 
    1426614266                        if (in_array(strtolower(strrchr($value, '.')), array('.rss', '.rdf', '.atom', '.xml')))
    1426714267                        {
    1426814268                                $this->checked_feeds++;
    14269                                 $feed =& new $this->file_class($value, $this->timeout, 5, null, $this->useragent);
     14269                                $feed = new $this->file_class($value, $this->timeout, 5, null, $this->useragent);
    1427014270                                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))
    1427114271                                {
    1427214272                                        return $feed;
    class SimplePie_Locator 
    1429114291                        if (preg_match('/(rss|rdf|atom|xml)/i', $value))
    1429214292                        {
    1429314293                                $this->checked_feeds++;
    14294                                 $feed =& new $this->file_class($value, $this->timeout, 5, null, $this->useragent);
     14294                                $feed = new $this->file_class($value, $this->timeout, 5, null, $this->useragent);
    1429514295                                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))
    1429614296                                {
    1429714297                                        return $feed;
    class SimplePie_Parser 
    1436514365
    1436614366                if (substr($data, 0, 5) === '<?xml' && strspn(substr($data, 5, 1), "\x09\x0A\x0D\x20") && ($pos = strpos($data, '?>')) !== false)
    1436714367                {
    14368                         $declaration =& new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));
     14368                        $declaration = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));
    1436914369                        if ($declaration->parse())
    1437014370                        {
    1437114371                                $data = substr($data, $pos + 2);
    class SimplePie_Parser 
    1441514415                else
    1441614416                {
    1441714417                        libxml_clear_errors();
    14418                         $xml =& new XMLReader();
     14418                        $xml = new XMLReader();
    1441914419                        $xml->xml($data);
    1442014420                        while (@$xml->read())
    1442114421                        {
    class SimplePie_Sanitize 
    1490114901                                                        }
    1490214902                                                        else
    1490314903                                                        {
    14904                                                                 $file =& new $this->file_class($img['attribs']['src']['data'], $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);
     14904                                                                $file = new $this->file_class($img['attribs']['src']['data'], $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);
    1490514905                                                                $headers = $file->headers;
    1490614906
    1490714907                                                                if ($file->success && ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($file->status_code === 200 || $file->status_code > 206 && $file->status_code < 300)))
  • wp-includes/class-wp.php

    diff --git wp-includes/class-wp.php wp-includes/class-wp.php
    index ace304c..479c3d4 100644
    class WP_MatchesMapRegex { 
    573573         * @return string
    574574         */
    575575        function apply($subject, $matches) {
    576                 $oSelf =& new WP_MatchesMapRegex($subject, $matches);
     576                $oSelf = new WP_MatchesMapRegex($subject, $matches);
    577577                return $oSelf->output;
    578578        }
    579579
  • wp-includes/query.php

    diff --git wp-includes/query.php wp-includes/query.php
    index 1887a6f..c94af44 100644
    function set_query_var($var, $value) { 
    8989 */
    9090function &query_posts($query) {
    9191        unset($GLOBALS['wp_query']);
    92         $GLOBALS['wp_query'] =& new WP_Query();
     92        $GLOBALS['wp_query'] = new WP_Query();
    9393        return $GLOBALS['wp_query']->query($query);
    9494}
    9595
    function &query_posts($query) { 
    105105 */
    106106function wp_reset_query() {
    107107        unset($GLOBALS['wp_query']);
    108         $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
     108        $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    109109        wp_reset_postdata();
    110110}
    111111
  • wp-includes/theme.php

    diff --git wp-includes/theme.php wp-includes/theme.php
    index 073c8df..bca7134 100644
    function add_custom_background( $header_callback = '', $admin_header_callback = 
    17281728        if ( ! is_admin() )
    17291729                return;
    17301730        require_once( ABSPATH . 'wp-admin/custom-background.php' );
    1731         $GLOBALS['custom_background'] =& new Custom_Background( $admin_header_callback, $admin_image_div_callback );
     1731        $GLOBALS['custom_background'] = new Custom_Background( $admin_header_callback, $admin_image_div_callback );
    17321732        add_action( 'admin_menu', array( &$GLOBALS['custom_background'], 'init' ) );
    17331733}
    17341734