diff --git a/admin-notices-ms.php b/admin-notices-ms.php index b4083b0..083ed96 100644 --- a/admin-notices-ms.php +++ b/admin-notices-ms.php @@ -82,8 +82,8 @@ private function __construct($plugin_file = null) { $this->plugin_file = isset($plugin_file)? $plugin_file : __FILE__; // Admin notices both in admin and network admin - add_action('admin_notices', [&$this, 'adminNoticesMS']); - add_action('network_admin_notices', [&$this, 'adminNoticesMS']); + add_action('admin_notices', array(&$this, 'adminNoticesMS')); + add_action('network_admin_notices', array(&$this, 'adminNoticesMS')); } diff --git a/core/filters.php b/core/filters.php index 85ed05f..287ce31 100644 --- a/core/filters.php +++ b/core/filters.php @@ -104,7 +104,7 @@ public function content($content) { public function contentURL($matches) { $tag = (3 == count($matches))? $matches[1] : null; $protocol = isset($matches[2])? $matches[2] : $matches[1]; - return (!isset($tag) || in_array($tag, ['img', 'url']) || $this->isInternalLink($matches[0]))? 'https://'.substr($matches[0], strlen($protocol)) : $matches[0]; + return (!isset($tag) || in_array($tag, array('img', 'url')) || $this->isInternalLink($matches[0]))? 'https://'.substr($matches[0], strlen($protocol)) : $matches[0]; } @@ -177,4 +177,4 @@ public function getHostFromURL($url, $remove_www = true) { -} \ No newline at end of file +}