Changeset 13016 for trunk/wp-includes/post.php
- Timestamp:
- 02/07/2010 09:49:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r12994 r13016 1200 1200 $post['filter'] = $context; 1201 1201 } 1202 1203 1202 return $post; 1204 1203 } … … 1235 1234 if ( in_array($field, $int_fields) ) 1236 1235 $value = (int) $value; 1236 1237 // Fields which contain arrays of ints. 1238 $array_int_fields = array( 'ancestors' ); 1239 if ( in_array($field, $array_int_fields) ) { 1240 $value = array_map( 'absint', $value); 1241 return $value; 1242 } 1237 1243 1238 1244 if ( 'raw' == $context )
Note: See TracChangeset
for help on using the changeset viewer.