Skip to content

Commit

Permalink
Fix #2637
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Jan 9, 2018
1 parent adde9e3 commit 73d74d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions includes/admin/upgrades/class-give-updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ public function setup() {

if ( is_admin() ) {
add_action( 'admin_init', array( $this, '__change_donations_label' ), 9999 );

if( give_test_ajax_works() ) {
add_action( 'admin_menu', array( $this, '__register_menu' ), 9999 );
}
add_action( 'admin_menu', array( $this, '__register_menu' ), 9999 );
}
}

Expand Down Expand Up @@ -238,6 +235,10 @@ function __change_donations_label() {
* @access public
*/
public function __register_menu() {
// Bailout.
if( ! give_test_ajax_works() ) {
return;
}

// Load plugin updates.
$this->__register_plugin_addon_updates();
Expand Down

0 comments on commit 73d74d7

Please sign in to comment.