0

i'm trying to debug my theme using below code to find out some errors,do i need to fix all errors or is it OK when i ignore some of them?

error_reporting(E_ALL); ini_set('display_errors', 1);

define( 'WP_DEBUG', true);

1 Answer 1

1

Any messages you are seeing with the debug output should be resolved. These often point to holes in the current logic within your theme.

If your goal is to submit the theme to the WordPress Theme Directory you have to resolve any PHP errors, warnings, or notices for the theme to be approved.

Themes must not generate any Theme-Check Warning or Required notices. Themes must not generate any WordPress deprecated-function or _doing_it_wrong() notices, PHP errors, warnings, or notices, HTML/CSS validation errors, or JavaScript errors.

via http://codex.wordpress.org/Theme_Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.