From b09b12f3afdfab8341ad228e0e4c355e50187d1c Mon Sep 17 00:00:00 2001 From: Enrico Deleo Date: Tue, 26 Jul 2016 16:27:21 +0200 Subject: [PATCH] converting shortsyntax array to legacy array() for PHP < 5.4 --- includes/libraries/class-emogrifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libraries/class-emogrifier.php b/includes/libraries/class-emogrifier.php index 77ee47a09c1..b085ab278b7 100644 --- a/includes/libraries/class-emogrifier.php +++ b/includes/libraries/class-emogrifier.php @@ -569,7 +569,7 @@ class Emogrifier // we don't try to call removeChild on a nonexistent child node /** @var \DOMNode $node */ foreach ($nodesWithStyleDisplayNone as $node) { - if ($node->parentNode && is_callable([$node->parentNode, 'removeChild'])) { + if ( $node->parentNode && is_callable( array($node->parentNode, 'removeChild') ) ) { $node->parentNode->removeChild($node); } }