From 9d6a2d1c3366fc1e5d87ab9d3d6a8708ba52e891 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 17 Oct 2020 15:45:06 +0000 Subject: [PATCH] Feeds: Fix "Only variables should be passed by reference" PHP notice in `atomlib.php`. Props jrf. Fixes #51558. Built from https://develop.svn.wordpress.org/trunk@49182 git-svn-id: http://core.svn.wordpress.org/trunk@48944 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/atomlib.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/atomlib.php b/wp-includes/atomlib.php index ce62b13599..97f85baf2d 100644 --- a/wp-includes/atomlib.php +++ b/wp-includes/atomlib.php @@ -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); diff --git a/wp-includes/version.php b/wp-includes/version.php index 80b0ffa522..789711c45f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49181'; +$wp_version = '5.6-alpha-49182'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.