php - Does Wordpress disable system functions?

One of my plugins reports base64_encode as missing. I checked my php.ini and know that this function is working before W

One of my plugins reports base64_encode as missing. I checked my php.ini and know that this function is working before Wordpress loads. Does Wordpress have the habit of disabling functions?

This is the code that checks for the functions:

if (!function_exists('base64_decode') || !function_exists('base64_encode')) {
    exit("base64 missing");
}

This works if placed before Wordpress loads. The exact same code is run by the plugin and it fails. What could have happened in-between.

One of my plugins reports base64_encode as missing. I checked my php.ini and know that this function is working before Wordpress loads. Does Wordpress have the habit of disabling functions?

This is the code that checks for the functions:

if (!function_exists('base64_decode') || !function_exists('base64_encode')) {
    exit("base64 missing");
}

This works if placed before Wordpress loads. The exact same code is run by the plugin and it fails. What could have happened in-between.

Share Improve this question asked Jan 21, 2020 at 14:54 FedericoFederico 1011 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

WP by itself does not disable those functions. This is a security mechanism of one of your plugins or theme that is disabling them. It is common practice for malicious code to be hidden by encoding it, and then decoding and executing it when the site loads.

You can disable plugins one by one until the function works to determine which one is disabling it. Logically any security related plugins would likely be the one's doing it, and with good reason, i.e. Wordfence, Sucuri, etc.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744815512a4595299.html

相关推荐

  • php - Does Wordpress disable system functions?

    One of my plugins reports base64_encode as missing. I checked my php.ini and know that this function is working before W

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信