foreach is a statement, not a function.
See #33491. Built from https://develop.svn.wordpress.org/trunk@33734 git-svn-id: http://core.svn.wordpress.org/trunk@33702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -599,7 +599,7 @@ function _response_to_rss ($resp) {
|
||||
if ( $rss && (!isset($rss->ERROR) || !$rss->ERROR) ) {
|
||||
|
||||
// find Etag, and Last-Modified
|
||||
foreach( (array) $resp->headers as $h) {
|
||||
foreach ( (array) $resp->headers as $h) {
|
||||
// 2003-03-02 - Nicola Asuni (www.tecnick.com) - fixed bug "Undefined offset: 1"
|
||||
if (strpos($h, ": ")) {
|
||||
list($field, $val) = explode(": ", $h, 2);
|
||||
|
||||
Reference in New Issue
Block a user