Changeset 5084
- Timestamp:
- 03/22/2007 11:02:20 PM (17 years ago)
- Location:
- branches/2.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions-post.php
r5031 r5084 407 407 408 408 // Set the limit clause, if we got a limit 409 $num = (int) $num; 409 410 if ($num) { 410 411 $limit = "LIMIT $num"; … … 477 478 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { 478 479 global $wpdb; 480 481 $post_ID = (int) $post_ID; 482 479 483 // If $post_categories isn't already an array, make it one: 480 484 if (!is_array($post_categories) || 0 == count($post_categories)) … … 487 491 SELECT category_id 488 492 FROM $wpdb->post2cat 489 WHERE post_id = $post_ID");493 WHERE post_id = '$post_ID'"); 490 494 491 495 if (!$old_categories) { … … 502 506 $wpdb->query(" 503 507 DELETE FROM $wpdb->post2cat 504 WHERE category_id = $del505 AND post_id = $post_ID508 WHERE category_id = '$del' 509 AND post_id = '$post_ID' 506 510 "); 507 511 } -
branches/2.0/wp-includes/template-functions-category.php
r4656 r5084 4 4 global $post, $category_cache; 5 5 6 $id = (int) $id; 6 7 if ( !$id ) 7 8 $id = $post->ID; -
branches/2.0/xmlrpc.php
r5076 r5084 410 410 $this->escape($args); 411 411 412 $post_ID = $args[1];412 $post_ID = (int) $args[1]; 413 413 $user_login = $args[2]; 414 414 $user_pass = $args[3]; … … 583 583 $this->escape($args); 584 584 585 $post_ID = $args[0];585 $post_ID = (int) $args[0]; 586 586 $user_login = $args[1]; 587 587 $user_pass = $args[2];
Note: See TracChangeset
for help on using the changeset viewer.