We take compliancy very serious here at Redux. Those who run Theme Check may get some warnings or errors. This document is to help you prepare your theme for submission to the WordPress.org directory or a marketplace such as Envato (ThemeForest/CodeCanyon). This article is primarily for users who are downloading from the GitHub Repo.

Before running Theme Check, you will need to delete the following files & folders from the Redux directory.

These files & directories are primarily for testing and development. If left in tact, you will be denied on your Theme submission.

  • .tx/
  • bin/
  • tests/
  • .gitignore
  • .git/
  • .travis.yml
  • bootstrap_tests.php
  • phpunit.xml
  • node_modules/
  • .ds_store
  • codestyles/

With those items removed, you will get a few more errors yet. We’ll go over each of these.

INFOThe theme appears to use include or require. 

This is harmless and will not affect you. Disregard all of these messages.

REQUIREDThemes should use add_theme_page() for adding admin pages.

FALSE! This is in regards to add_submenu_page(). That’s how we add submenus to the panel menu. It will pass inspection. There’s also a add_dashboard_page() reference. This also is harmless and will be incorporated at a later date.

WARNING: Found PHP short tags in file redux/ReduxCore/inc/fields/raw/parsedown.php.

False again. This is a regular expression. Disregard.

WARNINGfile_put_contents/file_get_contents/curl_init/curl_exec was found… File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

We tried doing this, but it failed on several hosts. Now these items are primarily fallback for when the WP_Filesystem fails. And oh yes, it does fail on odd hosts. Again, these warning will not get you rejected. If they do, send the reviewer this page and you will make it through. You’re feel to read our blog post about this whole ordeal entitled: Sometimes Standards Don’t Always Work. It’s a real nail biter.  😉
Good luck!