在Wordpress中,在每个页面上,有时多次,都会出现一段PHP代码

I'm not familiar with Wordpress, but have to fix this for a friend.

On every page there's PHP code showing up. In control panel, and also just as a regular visitor. Even when there's a simple pop-up.

Somebody has an idea from where this code is coming?

enter image description here

This looks potentially like a failed injection or bad code. I wouldnt touch anything (don't wanna mess up timestamps), and contact your hosting providers security team if you have that option.

What leads me to believe this is that its occurrence is all over the place, and specifically the user's control panel. Do you see that failure to evaluate that code on the blogs home page?

You can use this command at the root of the blog to locate recently modified .php files within a week:

find -type f -name '*.php' -mtime -7 -ls

See anything like base64_decode that looks odd in the list of files returned

It was a plugin "wp-pngfix/pngfix.php" that generated the bad code. After disabling it, everything is fine. Thanks for the solution @MrHunter!