Skip to content

Commit

Permalink
Removed unnecessary AJAX check function used in system-info.php
Browse files Browse the repository at this point in the history
  • Loading branch information
devin committed Apr 16, 2015
1 parent 703bb6f commit 28fed37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion includes/admin/system-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ function give_tools_sysinfo_get() {
$return .= 'Version: ' . GIVE_VERSION . "\n";
$return .= 'Upgraded From: ' . get_option( 'give_version_upgraded_from', 'None' ) . "\n";
$return .= 'Test Mode: ' . ( give_is_test_mode() ? "Enabled\n" : "Disabled\n" );
$return .= 'Ajax: ' . ( ! give_is_ajax_disabled() ? "Enabled\n" : "Disabled\n" );
$return .= 'Currency Code: ' . give_get_currency() . "\n";
$return .= 'Currency Position: ' . give_get_option( 'currency_position', 'before' ) . "\n";
$return .= 'Decimal Separator: ' . give_get_option( 'decimal_separator', '.' ) . "\n";
Expand Down
15 changes: 1 addition & 14 deletions includes/ajax-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function give_is_ajax_enabled() {
/**
* Check if AJAX works as expected
*
* @since 2.2
* @since 1.0
* @return bool True if AJAX works, false otherwise
*/
function give_test_ajax_works() {
Expand Down Expand Up @@ -73,19 +73,6 @@ function give_test_ajax_works() {
return $works;
}

/**
* Checks whether AJAX is disabled.
*
* @since 1.0
* @return bool
*/
function give_is_ajax_disabled() {
$retval = ! give_get_option( 'enable_ajax_cart' );

return apply_filters( 'give_is_ajax_disabled', $retval );
}


/**
* Get AJAX URL
*
Expand Down

0 comments on commit 28fed37

Please sign in to comment.