Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin-notices-ms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}


Expand Down
4 changes: 2 additions & 2 deletions core/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}


Expand Down Expand Up @@ -177,4 +177,4 @@ public function getHostFromURL($url, $remove_www = true) {



}
}