Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional checks to the "System Info" settings tab #506 #534

Merged
merged 1 commit into from
Mar 22, 2016
Merged
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
11 changes: 7 additions & 4 deletions includes/admin/system-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function give_system_info_callback() {
?>
<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="give-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php echo give_tools_sysinfo_get(); ?></textarea>
<p class="submit">
<input type="hidden" name="give-action" value="download_sysinfo" />
<input type="hidden" name="give-action" value="download_sysinfo"/>
<?php submit_button( 'Download System Info File', 'secondary', 'give-download-sysinfo', false ); ?>
</p>
<style>
Expand All @@ -48,8 +48,8 @@ function give_system_info_callback() {
*
* @since 1.0
* @access public
* @global object $wpdb Used to query the database using the WordPress Database API
* @global array $give_options Array of all Give options
* @global object $wpdb Used to query the database using the WordPress Database API
* @global array $give_options Array of all Give options
* @return string $return A string containing the info to output
*/
function give_tools_sysinfo_get() {
Expand All @@ -63,7 +63,7 @@ function give_tools_sysinfo_get() {

// Get theme info
if ( get_bloginfo( 'version' ) < '3.4' ) {
$theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
$theme_data = wp_get_theme( get_stylesheet_directory() . '/style.css' );
$theme = $theme_data['Name'] . ' ' . $theme_data['Version'];
} else {
$theme_data = wp_get_theme();
Expand Down Expand Up @@ -278,6 +278,7 @@ function give_tools_sysinfo_get() {
$return .= 'Upload Max Filesize: ' . ini_get( 'upload_max_filesize' ) . "\n";
$return .= 'Time Limit: ' . ini_get( 'max_execution_time' ) . "\n";
$return .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n";
$return .= 'URL-aware fopen: ' . ( ini_get( 'allow_url_fopen' ) ? 'On (' . ini_get( 'allow_url_fopen' ) . ')' : 'N/A' ) . "\n";
$return .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n";

$return = apply_filters( 'give_sysinfo_after_php_config', $return );
Expand All @@ -291,6 +292,8 @@ function give_tools_sysinfo_get() {
$curl_values = curl_version();
$return .= 'cURL Version: ' . $curl_values["version"] . "\n";
}
$return .= 'zlib: ' . ( function_exists( 'gzcompress' ) ? 'Supported' : 'Not Supported' ) . "\n";
$return .= 'GD: ' . ( ( extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ) ? 'Supported' : 'Not Supported' ) . "\n";
$return .= 'fsockopen: ' . ( function_exists( 'fsockopen' ) ? 'Supported' : 'Not Supported' ) . "\n";
$return .= 'SOAP Client: ' . ( class_exists( 'SoapClient' ) ? 'Installed' : 'Not Installed' ) . "\n";
$return .= 'Suhosin: ' . ( extension_loaded( 'suhosin' ) ? 'Installed' : 'Not Installed' ) . "\n";
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ We also really like WooCommerce. It's hands-down the most robust eCommerce platf
* New: Added links to plugin settings page and documentation on the WordPress plugin listing page - https://github.com/WordImpress/Give/issues/531
* Tweak: Removed usage of the image size "give_form_thumbnail" in favor of "give_form_single" - https://github.com/WordImpress/Give/issues/412
* Tweak: Increased modal windows z-index value - https://github.com/WordImpress/Give/issues/524
* Tweak: Added additional checks to the "System Info" settings tab - https://github.com/WordImpress/Give/issues/506
* Fix: Transactions with a "cancelled" status are not shown in the wp-admin Transactions table - thanks @pryley - https://github.com/WordImpress/Give/issues/514

= 1.3.6 =
Expand Down