redux-framework
redux-framework copied to clipboard
ABSPATH and embedding in theme
While embedding Redux into theme, WordPress Theme review raises 2 issues.
- Should not used ABSPATH
- Should not include WordPress Core files.
These two lines are main issue
-
redux-framework/ReduxCore/framework.php Line 2203: include( ABSPATH . 'wp-includes/pluggable.php' );
-
redux-framework/ReduxCore/inc/class.redux_functions.php Line 91: require_once( ABSPATH . '/wp-admin/includes/file.php' );
How to resolve this?
They cannot be removed, or the framework would fail. The code is not part of the theme itself, and as such should not be subject to theme check rules. Explain this to the reviewer. If he doesn't get it, send him to us. :)