Skip to content

Commit 86fa01e

Browse files
committed
double header fix
fix: double header on link to check from extensions page
1 parent 4500623 commit 86fa01e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

hhdev-mwpcpv-dashboard.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
// mwpcpv dashboard
3-
// version: 1.0.9
3+
// version: 1.0.10
44
// ---------------------
55
class MainWPCheckPluginVulnerability extends MainWPCheckPluginVulnerabilityActivator {
66

@@ -41,7 +41,8 @@ public static function hhdev_mwpcpv_render_page() {
4141

4242
global $MainWPCheckPluginVulnerabilityActivator;
4343

44-
do_action('mainwp-pageheader-extensions', __FILE__); // page header
44+
// fix: double header on link to check from extensions page
45+
if ($_GET['page'] == 'ManageSiteshhdev-mwp-check-plugins-vulnerability') do_action('mainwp-pageheader-extensions', __FILE__); // page header
4546

4647
?>
4748
<div id="mainwp_custom_dashboard_extension">

hhdev-mwpcpv.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Check Plugins Vulnerability Extension
44
* Plugin URI: https://haha.nl
55
* Description: Check the installed website plugins for vulnerability use the wordfence vulnerability data feed api.
6-
* Version: 1.0.9
6+
* Version: 1.0.10
77
* Author: herbert hoekstra - haha!
88
* Author URI: https://haha.nl
99
* Documentation URI: https://haha.nl/wordpress-plug-in-op-maat/
@@ -377,6 +377,7 @@ public function hhdev_make_adapted_file() {
377377

378378
/*
379379
change log:
380+
- 1.0.10 fix: double header on link to check from extensions page
380381
- 1.0.9 added: some styling on the show hide button, some file names changed, use mainwp sidebar and header
381382
- 1.0.8 added: Dashboard: option to show hide no vulnerability results
382383
- 1.0.7 added: version syntax check

0 commit comments

Comments
 (0)