Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @sirotwo, thanks for reaching out.

    The main difference is that __DIR__ is a way with less overhead to basically do the same thing as dirname(__FILE__). This was changed when WordPress changed its minimum requirement to be PHP 5.6.

    I don’t see that this would be changed maliciously, but have you recently rolled back WordPress versions, or restored a site backup that may have reinstated the older version of the file? You should be safe to keep the original version if you’re on PHP 5.6 or above, as that reflects the newer __DIR__ code.

    Thanks,
    Peter.

Viewing 1 replies (of 1 total)
  • The topic ‘Security threat’ is closed to new replies.