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

Props jrf.
Fixes #51558.

git-svn-id: https://develop.svn.wordpress.org/trunk@49182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-10-17 15:43:39 +00:00
parent ff18031d1b
commit b91257e97f

View File

@ -191,7 +191,8 @@ class AtomParser {
function start_element($parser, $name, $attrs) {
$tag = array_pop(explode(":", $name));
$name_parts = explode(":", $name);
$tag = array_pop($name_parts);
switch($name) {
case $this->NS . ':feed':
@ -270,7 +271,8 @@ class AtomParser {
function end_element($parser, $name) {
$tag = array_pop(explode(":", $name));
$name_parts = explode(":", $name);
$tag = array_pop($name_parts);
$ccount = count($this->in_content);