Changeset 811
- Timestamp:
- 11/27/06 11:19:48 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-db.php (modified) (3 diffs)
- trunk/wp-includes/bookmark.php (modified) (4 diffs)
- trunk/wp-includes/category.php (modified) (1 diff)
- trunk/wp-includes/kses.php (modified) (2 diffs)
- trunk/wp-includes/post.php (modified) (8 diffs)
- trunk/wp-includes/wpmu-functions.php (modified) (1 diff)
- trunk/xmlrpc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-db.php
r810 r811 140 140 141 141 wp_cache_delete($cat_ID, 'category'); 142 wp_cache_delete('get_categories', 'category'); 142 143 143 144 if ($update) { … … 221 222 wp_cache_delete($cat_ID, 'category'); 222 223 wp_cache_delete('all_category_ids', 'category'); 224 wp_cache_delete('get_categories', 'category'); 223 225 224 226 do_action('delete_category', $cat_ID); … … 414 416 $wpdb->query("UPDATE $wpdb->categories SET link_count = link_count - 1 WHERE cat_ID = '$category'"); 415 417 wp_cache_delete($category, 'category'); 418 do_action('edit_category', $cat_id); 416 419 } 417 420 } trunk/wp-includes/bookmark.php
r810 r811 20 20 // Deprecate 21 21 function get_link($bookmark_id, $output = OBJECT) { 22 return get_bookmark($bookmark_id, $output); 22 return get_bookmark($bookmark_id, $output); 23 23 } 24 24 … … 56 56 } 57 57 } 58 if (!empty($inclusions)) 58 if (!empty($inclusions)) 59 59 $inclusions .= ')'; 60 60 … … 71 71 } 72 72 } 73 if (!empty($exclusions)) 73 if (!empty($exclusions)) 74 74 $exclusions .= ')'; 75 75 … … 93 93 } 94 94 if (!empty($category_query)) { 95 $category_query .= ')'; 95 $category_query .= ')'; 96 96 $join = " LEFT JOIN $wpdb->link2cat ON ($wpdb->links.link_id = $wpdb->link2cat.link_id) "; 97 97 } trunk/wp-includes/category.php
r810 r811 226 226 } 227 227 228 function cat_is_ancestor_of($cat1, $cat2) { 229 if ( is_int($cat1) ) 230 $cat1 = & get_category($cat1); 231 if ( is_int($cat2) ) 232 $cat2 = & get_category($cat2); 233 234 if ( !$cat1->cat_ID || !$cat2->category_parent ) 235 return false; 236 237 if ( $cat2->category_parent == $cat1->cat_ID ) 238 return true; 239 240 return cat_is_ancestor_of($cat1, get_category($cat2->parent_category)); 241 } 242 228 243 // 229 244 // Private trunk/wp-includes/kses.php
r765 r811 823 823 // Post filtering 824 824 add_filter('content_save_pre', 'wp_filter_post_kses'); 825 add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 825 826 add_filter('pre_comment_author', 'wp_filter_kses'); 826 827 add_action('admin_notices', 'wp_kses_show_message'); … … 834 835 // Post filtering 835 836 remove_filter('content_save_pre', 'wp_filter_post_kses'); 837 remove_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 836 838 } 837 839 trunk/wp-includes/post.php
r810 r811 403 403 $wpdb->query("UPDATE $wpdb->categories SET category_count = category_count - 1 WHERE cat_ID = '$cat_id'"); 404 404 wp_cache_delete($cat_id, 'category'); 405 do_action('edit_category', $cat_id); 405 406 } 406 407 } … … 418 419 $wpdb->query("DELETE FROM $wpdb->postmeta WHERE post_id = $postid"); 419 420 420 if ( 'page' == $post->type ) { 421 wp_cache_delete('all_page_ids', 'pages'); 421 if ( 'page' == $post->post_type ) { 422 wp_cache_delete( 'all_page_ids', 'pages' ); 423 wp_cache_delete( 'get_pages', 'page' ); 422 424 $wp_rewrite->flush_rules(); 423 425 } … … 496 498 if ( empty($no_filter) ) { 497 499 $post_content = apply_filters('content_save_pre', $post_content); 500 $post_content_filtered = apply_filters('content_filtered_save_pre', $post_content_filtered); 498 501 $post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt); 499 502 $post_title = apply_filters('title_save_pre', $post_title); … … 680 683 } 681 684 } else if ($post_type == 'page') { 682 wp_cache_delete('all_page_ids', 'pages'); 685 wp_cache_delete( 'all_page_ids', 'pages' ); 686 wp_cache_delete( 'get_pages', 'page' ); 683 687 $wp_rewrite->flush_rules(); 684 688 … … 809 813 do_action('edit_category', $cat_id); 810 814 } 815 816 wp_cache_delete('get_categories', 'category'); 811 817 812 818 do_action('edit_post', $post_ID); … … 1060 1066 if ( !empty($include) ) { 1061 1067 $child_of = 0; //ignore child_of, exclude, meta_key, and meta_value params if using include 1062 $exclude = ''; 1068 $exclude = ''; 1063 1069 $meta_key = ''; 1064 1070 $meta_value = ''; … … 1073 1079 } 1074 1080 } 1075 if (!empty($inclusions)) 1076 $inclusions .= ')'; 1081 if (!empty($inclusions)) 1082 $inclusions .= ')'; 1077 1083 1078 1084 $exclusions = ''; … … 1210 1216 // Get the basics. 1211 1217 $post_content = apply_filters('content_save_pre', $post_content); 1218 $post_content_filtered = apply_filters('content_filtered_save_pre', $post_content_filtered); 1212 1219 $post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt); 1213 1220 $post_title = apply_filters('title_save_pre', $post_title); trunk/wp-includes/wpmu-functions.php
r810 r811 1388 1388 } 1389 1389 1390 function cat_is_ancestor_of($cat1, $cat2) {1391 if ( is_int($cat1) )1392 $cat1 = & get_category($cat1);1393 if ( is_int($cat2) )1394 $cat2 = & get_category($cat2);1395 1396 if ( !$cat1->cat_ID || !$cat2->category_parent )1397 return false;1398 1399 if ( $cat2->category_parent == $cat1->cat_ID )1400 return true;1401 1402 return cat_is_ancestor_of($cat1, get_category($cat2->parent_category));1403 }1404 1405 1390 ?> trunk/xmlrpc.php
r810 r811 1220 1220 $comment_post_ID = (int) $post_ID; 1221 1221 $comment_author = $title; 1222 $ wpdb->escape($comment_author);1222 $this->escape($comment_author); 1223 1223 $comment_author_url = $pagelinkedfrom; 1224 1224 $comment_content = $context; 1225 $ wpdb->escape($comment_content);1225 $this->escape($comment_content); 1226 1226 $comment_type = 'pingback'; 1227 1227
