redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

ABSPATH and embedding in theme

Open venkatraj opened this issue 11 years ago • 1 comments

While embedding Redux into theme, WordPress Theme review raises 2 issues.

  1. Should not used ABSPATH
  2. Should not include WordPress Core files.

These two lines are main issue

  1. redux-framework/ReduxCore/framework.php Line 2203: include( ABSPATH . 'wp-includes/pluggable.php' );

  2. redux-framework/ReduxCore/inc/class.redux_functions.php Line 91: require_once( ABSPATH . '/wp-admin/includes/file.php' );

How to resolve this?

venkatraj avatar Dec 08 '14 12:12 venkatraj

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. :)

kprovance avatar Dec 11 '14 13:12 kprovance