330 posts
  • Author Level 6
  • Collector Level 1
  • 3 Years of Membership
  • Exclusive Author
PersianArt
says

hi, my theme reject for this reason

The WordPress theme should make use of the following inbuilt functions to validate or santize content on input or escape any questionable content for put. http://codex.wordpress.org/Data_Validation

I do this orders for front-end inputs but not on my admin panel, I want know, I must put for all input in my admin also?

if you have some information about it please guide me

also I received this error from reviewer

WARNING: wp-includes/functions.php:932 – Cannot modify header information – headers already sent by (output started at /Users/.../Sites/wordpress/wp-content/themes/royaldesign/includes/misc/all-inline.php:85) WARNING: wp-includes/functions.php:945 – Cannot modify header information – headers already sent by (output started at /Users/.../Sites/wordpress/wp-content/themes/royaldesign/includes/misc/all-inline.php:85) WARNING: wp-includes/functions.php:3725 – Cannot modify header information – headers already sent by (output started at /Users/.../Sites/wordpress/wp-content/themes/royaldesign/includes/misc/all-inline.php:85) WARNING: wp-admin/admin-header.php:9 – Cannot modify header information – headers already sent by (output started at /Users/.../Sites/wordpress/wp-content/themes/royaldesign/includes/misc/all-inline.php:85)

I have not this error on my host or localhost!

thank you

3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

Do you have PHP error reporting on and also WP_Debug on?

330 posts
  • Author Level 6
  • Collector Level 1
  • 3 Years of Membership
  • Exclusive Author
PersianArt
says

Do you have PHP error reporting on and also WP_Debug on?

I have not any error while “WP_DEBUG” and “SAVEQUERIES” is set to “true” on localhost and webhost both

please also if you have any info about my first question guide me

thanks

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says


Do you have PHP error reporting on and also WP_Debug on?

I have not any error while “WP_DEBUG” and “SAVEQUERIES” is set to “true” on localhost and webhost both

please also if you have any info about my first question guide me

thanks
Yes, you should sanitize both frontend and backend. Just because a user is validated (logged in) does not mean he does not have bad intentions.

Regarding your second error abour header already sent, from experience I believe this is due to an extra space left after closing php tags at the end of the document. If so, to avoid that, don’t close php tags at the end. It is not required and helps avoiding such problems.

330 posts
  • Author Level 6
  • Collector Level 1
  • 3 Years of Membership
  • Exclusive Author
PersianArt
says



Do you have PHP error reporting on and also WP_Debug on?

I have not any error while “WP_DEBUG” and “SAVEQUERIES” is set to “true” on localhost and webhost both

please also if you have any info about my first question guide me

thanks
Yes, you should sanitize both frontend and backend. Just because a user is validated (logged in) does not mean he does not have bad intentions. Regarding your second error abour header already sent, from experience I believe this is due to an extra space left after closing php tags at the end of the document. If so, to avoid that, don’t close php tags at the end. It is not required and helps avoiding such problems.

If I must do this, then I have many thing for do. and for secont I try to find extra space

thank you

by
by
by
by
by
by