Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Dec 19, 2024
1 parent a6d94ca commit 9dc900f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
3 changes: 1 addition & 2 deletions classes/ThirdParty/Plugins/GravityForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public function imagify_gf_noconflict_scripts( $scripts ): array {
* @return bool
*/
private function is_gravity_forms_no_conflict_mode_enabled(): bool {
return is_plugin_active( 'gravityforms/gravityforms.php' )
&& get_option( 'gform_enable_noconflict', false )
return get_option( 'gform_enable_noconflict', false )
&& GFForms::is_gravity_page();
}
}
13 changes: 0 additions & 13 deletions inc/classes/class-imagify-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,19 +642,6 @@ public function print_js_templates() {
}
}

/**
* Check if menu is present
*
* @return bool
*/
private function admin_menu_is_present(): bool {
global $wp_admin_bar;

$imagify_menu_id = 'imagify';

return $wp_admin_bar && $wp_admin_bar->get_node( $imagify_menu_id );
}

/**
* Get imagify user info
*
Expand Down

0 comments on commit 9dc900f

Please sign in to comment.