Hi guys, I run an anti-malware scan on my site and the program told that some files of generatepress could be infected. I would like to share with you the suspicious lines/codes to ask you if you recognize them or if you think they are actually malicious code the were injected please!
Here we have the codeas:
1. …/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php
Potential malicious code:
`if ( $this->php && GeneratePress_Elements_Helper::should_execute_php() ) {
ob_start();
eval( ‘?>’ . $content . ‘<?php ‘ ); // phpcs:ignore — Using eval() to execute PHP.
echo ob_get_clean(); // phpcs:ignore — Escaping not necessary.
} else {
echo $content; // phpcs:ignore — Escaping not necessary.
}