Permalink
Browse files

Diagnostics / Show read-out of WordPress version, PHP version (if ava…

…ilable), Apache version (if available) in Diagnostics panel.
  • Loading branch information...
Charles Johnson
Charles Johnson committed Mar 13, 2013
1 parent 1345bf5 commit a36f1ad3de1d11d5f8d18e76e0422d4a65a168be
Showing with 18 additions and 3 deletions.
  1. +15 −0 diagnostics-page.php
  2. +3 −3 feedwordpress.php
View
@@ -119,6 +119,7 @@ function accept_POST ($post) {
function info_box ($page, $box = NULL) {
global $feedwordpress;
+ global $wp_version;
$link_category_id = FeedWordPress::link_category_id();
?>
<table class="edit-form narrow">
@@ -133,6 +134,20 @@ function info_box ($page, $box = NULL) {
<td>You are using FeedWordPress version <strong><?php print FEEDWORDPRESS_VERSION; ?></strong>.</td>
</tr>
+ <tr>
+ <th scope="row">Hosting Environment:</th>
+ <td><ul style="margin-top: 0; padding-top: 0;">
+ <li><em>WordPress:</em> version <?php print $wp_version; ?></li>
+ <?php if (function_exists('phpversion')) : ?>
+ <li><em>PHP:</em> version <?php print phpversion(); ?></li>
+ <?php endif; ?>
+ <?php if (function_exists('apache_get_version')) : ?>
+ <li><sem>Web Server:</em> <?php print apache_get_version(); ?></li>
+ <?php endif; ?>
+ </ul>
+ </td>
+ </tr>
+
<tr>
<th scope="row">Link Category:</th>
<td><?php if (!is_wp_error($link_category_id)) :
View
@@ -3,15 +3,15 @@
Plugin Name: FeedWordPress
Plugin URI: http://feedwordpress.radgeek.com/
Description: simple and flexible Atom/RSS syndication for WordPress
-Version: 2013.0312
+Version: 2013.0313
Author: Charles Johnson
Author URI: http://radgeek.com/
License: GPL
*/
/**
* @package FeedWordPress
- * @version 2013.0312
+ * @version 2013.0313
*/
# This uses code derived from:
@@ -32,7 +32,7 @@
# -- Don't change these unless you know what you're doing...
-define ('FEEDWORDPRESS_VERSION', '2013.0312');
+define ('FEEDWORDPRESS_VERSION', '2013.0313');
define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'http://radgeek.com/contact');
if (!defined('FEEDWORDPRESS_BLEG')) :

0 comments on commit a36f1ad

Please sign in to comment.