mirror of
git://develop.git.wordpress.org/
synced 2025-02-13 03:04:42 +01:00
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:
parent
ff18031d1b
commit
b91257e97f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user