Commits

Doug Stewart committed 59d3394

Switching to wp_kses_post() in lieu of esc_attr() in options sanitization function.

Comments (0)

Files changed (2)

 		* Changed location of post meta information
 		* Floated elements properly cleared in single post/page templates
 		* Captioned images properly aligned
+		* "Comments are closed" displayed when comments are disabled/closed
+		* Switched options textareas from `esc_attr()` to `wp_kses_post()`
 * Version 1.1.1
 	* **Issues Fixed**
 		* Updated to fix 'native' bug in upstream `bbp_twentyten` (ref. [rev. 3331](http://bbpress.trac.wordpress.org/changeset/3331))
 	* <del>Captioned images must be properly aligned.</del>
 	* <del>Floated elements must be properly cleared.</del>
 	* Check your styling of comments, particularly nested comments.
-	* Posts with closed comments are required to display some kind of "Comments are disabled" message. This does not apply to Pages.
-	* Theme options using textareas that allow HTML should use `wp_kses_post()` when sanitizing form data.
+	* <del>Posts with closed comments are required to display some kind of "Comments are disabled" message. This does not apply to Pages.</del>
+	* <del>Theme options using textareas that allow HTML should use `wp_kses_post()` when sanitizing form data.</del>
 	* Provide styling for the calendar widget.
 	* <del>Provide more whitespace between the post meta and post content.</del>
 	* Content entered in "Copyright Statement" and "Footer Credits" does not show up on the site.

includes/functions/options.php

 				case 'text':
 				case 'textarea':
 					if( isset($input[$key]) ){
-						$valid_input[ $key ] = esc_attr( $input[$key] );
+						$valid_input[ $key ] = wp_kses_post( $input[ $key ] );
+						//$valid_input[ $key ] = esc_attr( $input[$key] );
 					}
 				break;
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.