Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Display global varnish version on settings page with other globals

  • Loading branch information...
commit 214a6606ffe8f8e92fa2916a9d7a1c83eae39c8b 1 parent 4a0e19a
= authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  wp-varnish.php
View
3  wp-varnish.php
@@ -258,12 +258,15 @@ function WPVarnishAdmin() {
<?php
// Can't be edited - already defined in wp-config.php
global $varnish_servers;
+ global $varnish_version;
if (is_array($varnish_servers)) {
echo "<p>" . __("These values can't be edited since there's a global configuration located in <em>wp-config.php</em>. If you want to change these settings, please update the file or contact the administrator.",'wp-varnish') . "</p>\n";
// Also, if defined, show the varnish servers configured (VARNISH_SHOWCFG)
if (defined('VARNISH_SHOWCFG')) {
echo "<h3>" . __("Current configuration:",'wp-varnish') . "</h3>\n";
echo "<ul>";
+ if ( isset($varnish_version) && $varnish_version )
+ echo "<li>" . __("Version: ",'wp-varnish') . $varnish_version . "</li>";
foreach ($varnish_servers as $server) {
list ($host, $port, $secret) = explode(':', $server);
echo "<li>" . __("Server: ",'wp-varnish') . $host . "<br/>" . __("Port: ",'wp-varnish') . $port . "</li>";
Please sign in to comment.
Something went wrong with that request. Please try again.