Changeset 23531
- Timestamp:
- 02/28/2013 07:40:26 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r23416 r23531 625 625 'post_type' => $post['post_type'], 626 626 'post_name' => $post['post_name'], 627 'post_author' => (string)$post['post_author'],627 'post_author' => $post['post_author'], 628 628 'post_password' => $post['post_password'], 629 629 'post_excerpt' => $post['post_excerpt'], … … 807 807 $_page = array( 808 808 'dateCreated' => $page_date, 809 'userid' => (string)$page->post_author,809 'userid' => $page->post_author, 810 810 'page_id' => $page->ID, 811 811 'page_status' => $page->post_status, … … 3648 3648 3649 3649 $struct = array( 3650 'userid' => (string)$post_data['post_author'],3650 'userid' => $post_data['post_author'], 3651 3651 'dateCreated' => $this->_convert_date( $post_data['post_date'] ), 3652 3652 'content' => $content, 3653 'postid' 3653 'postid' => (string) $post_data['ID'] 3654 3654 ); 3655 3655 … … 3699 3699 3700 3700 $struct[] = array( 3701 'userid' => (string)$entry['post_author'],3701 'userid' => $entry['post_author'], 3702 3702 'dateCreated' => $post_date, 3703 'content' 3704 'postid' 3703 'content' => $content, 3704 'postid' => (string) $entry['ID'], 3705 3705 ); 3706 3706 … … 4571 4571 $resp = array( 4572 4572 'dateCreated' => $post_date, 4573 'userid' => (string)$postdata['post_author'],4573 'userid' => $postdata['post_author'], 4574 4574 'postid' => $postdata['ID'], 4575 4575 'description' => $post['main'], … … 4682 4682 $struct[] = array( 4683 4683 'dateCreated' => $post_date, 4684 'userid' => (string)$entry['post_author'],4684 'userid' => $entry['post_author'], 4685 4685 'postid' => (string) $entry['ID'], 4686 4686 'description' => $post['main'], … … 4897 4897 $struct[] = array( 4898 4898 'dateCreated' => $post_date, 4899 'userid' => (string)$entry['post_author'],4899 'userid' => $entry['post_author'], 4900 4900 'postid' => (string) $entry['ID'], 4901 4901 'title' => $entry['post_title'], -
trunk/wp-includes/post.php
r23466 r23531 1977 1977 */ 1978 1978 function sanitize_post_field($field, $value, $post_id, $context) { 1979 $int_fields = array('ID', 'post_parent', 'menu_order' , 'post_author', 'comment_count');1979 $int_fields = array('ID', 'post_parent', 'menu_order'); 1980 1980 if ( in_array($field, $int_fields) ) 1981 1981 $value = (int) $value;
Note: See TracChangeset
for help on using the changeset viewer.