mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
This commit is contained in:
parent
5a573f28f2
commit
9d6a2d1c33
@ -191,7 +191,8 @@ class AtomParser {
|
|||||||
|
|
||||||
function start_element($parser, $name, $attrs) {
|
function start_element($parser, $name, $attrs) {
|
||||||
|
|
||||||
$tag = array_pop(explode(":", $name));
|
$name_parts = explode(":", $name);
|
||||||
|
$tag = array_pop($name_parts);
|
||||||
|
|
||||||
switch($name) {
|
switch($name) {
|
||||||
case $this->NS . ':feed':
|
case $this->NS . ':feed':
|
||||||
@ -270,7 +271,8 @@ class AtomParser {
|
|||||||
|
|
||||||
function end_element($parser, $name) {
|
function end_element($parser, $name) {
|
||||||
|
|
||||||
$tag = array_pop(explode(":", $name));
|
$name_parts = explode(":", $name);
|
||||||
|
$tag = array_pop($name_parts);
|
||||||
|
|
||||||
$ccount = count($this->in_content);
|
$ccount = count($this->in_content);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user