nylen/PHP-Error-Log-Viewer

Change how PATH_PLUGINS is determined

Closed this issue · 1 comments

Description

The PATH_PLUGINS constant can be improved from this:

const PATH_PLUGINS = WP_PLUGIN_DIR;

to

define(__NAMESPACE__.'\PATH_PLUGINS', untrailingslashit(plugin_dir_path(dirname(dirname(__FILE__)))));

Implemented in release version 2.1.0.