The first line and the if statement is useless there. $changedDir is empty and if statement would always turn to true since $changedDir is empty.
PHP Code:
The above statement seems like its trying to get the root path / Wordpress directory where wp-contents folder is located (incase this is stored in a theme file or plugin). Its removing everything after and including wp-content in __FILE__ (which gives the current file path)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.