I'm having a a pain in the head using the
ABSPATH constant in Windows.
Addressing files and folders in Windows is usually done using the
\ (forward-slash) character while for Linux the character would be
ABSPATH in Wordpress is defined with only Linux in mind (putting a
/ at the end of it).
I wonder if I can over-ride it's definition since in
wp-config.php it's defined under an
if clause which indicates it can be defined elsewhere.
- I'm running on
- The problem is with the
This is how it addresses the files:
ABSPATH . 'wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/def/os.dat'
And this is what I get as output: