Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31576

szaleq on "[Plugin: NewStatPress] FIX: bug with changed content dir"

$
0
0

Hi,

I found some issue when usign NewStatPress with changed content directory.
You can define different content directory than the default wp-content, plugins such as Better WP Security persuade you to do it for security reson.
What's the problem with NewStatPress:
in main file (newstatpress.php) in line 1742
$lines = file(ABSPATH.'wp-content/plugins '.dirname(plugin_basename(__FILE__)).'/def/banips.dat');
it assumes the content dir is always wp-content. the line should be:
$lines = file(WP_PLUGIN_DIR . '/' .dirname(plugin_basename(__FILE__)).'/def/banips.dat');

I don't know if there are more lines like this, I just found this one. Please change it in future releases. Thank you

https://wordpress.org/plugins/newstatpress/


Viewing all articles
Browse latest Browse all 31576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>