mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00: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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user