Revert [23359]. The post_author and comment_count post object fields will remain numeric strings for back compat. see #22324.

git-svn-id: https://develop.svn.wordpress.org/trunk@23531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-02-28 19:40:26 +00:00
parent 60a88cf02c
commit 352183c346
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1976,7 +1976,7 @@ function sanitize_post($post, $context = 'display') {
* @return mixed Sanitized value.
*/
function sanitize_post_field($field, $value, $post_id, $context) {
$int_fields = array('ID', 'post_parent', 'menu_order', 'post_author', 'comment_count');
$int_fields = array('ID', 'post_parent', 'menu_order');
if ( in_array($field, $int_fields) )
$value = (int) $value;