WordPress.org

Make WordPress Core

Changeset 49182


Ignore:
Timestamp:
10/17/2020 03:43:39 PM (8 days ago)
Author:
SergeyBiryukov
Message:

Feeds: Fix "Only variables should be passed by reference" PHP notice in atomlib.php.

Props jrf.
Fixes #51558.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/atomlib.php

    r48322 r49182  
    192192    function start_element($parser, $name, $attrs) {
    193193
    194         $tag = array_pop(explode(":", $name));
     194        $name_parts = explode(":", $name);
     195        $tag        = array_pop($name_parts);
    195196
    196197        switch($name) {
     
    271272    function end_element($parser, $name) {
    272273
    273         $tag = array_pop(explode(":", $name));
     274        $name_parts = explode(":", $name);
     275        $tag        = array_pop($name_parts);
    274276
    275277        $ccount = count($this->in_content);
Note: See TracChangeset for help on using the changeset viewer.