Changeset 2780
- Timestamp:
- 08/14/2005 06:06:02 PM (20 years ago)
- Location:
- branches/1.5
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/wp-admin/categories.php
r2446 r2780 35 35 36 36 $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')"); 37 do_action('add_category', $wpdb->insert_id); 37 38 38 39 header('Location: categories.php?message=1#addcat'); … … 58 59 // TODO: Only set categories to general if they're not in another category already 59 60 $wpdb->query("UPDATE $wpdb->post2cat SET category_id='1' WHERE category_id='$cat_ID'"); 61 do_action('delete_category', $cat_ID); 60 62 61 63 header('Location: categories.php?message=2'); -
branches/1.5/wp-admin/edit-page-form.php
r2412 r2780 86 86 87 87 <p class="submit"> 88 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Edit Page') :_e('Create New Page') ?> »" /> 89 <input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" /> 88 <?php if ( $post_ID ) : ?> 89 <input name="save" type="submit" id="save" tabindex="5" value=" <?php _e('Save and Continue Editing'); ?> "/> 90 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Edit Page') : _e('Create New Page') ?> »" /> 91 <?php else : ?> 92 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page') ?> »" /> 93 <?php endif; ?> 94 <input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" /> 90 95 </p> 91 96 92 97 <fieldset id="pageoptions"> 93 <legend><?php _e('Page Options') ?></legend> 98 <legend><?php _e('Page Options') ?></legend> 94 99 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 95 100 <?php if ( 0 != count( get_page_templates() ) ) { ?> -
branches/1.5/wp-admin/post.php
r2666 r2780 196 196 do_action('publish_post', $post_ID); 197 197 if ($post_pingback) 198 pingback($content, $post_ID); 199 do_enclose( $content, $post_ID ); 200 do_trackbacks($post_ID); 201 198 register_shutdown_function('pingback', $content, $post_ID); 199 register_shutdown_function('do_enclose', $content, $post_ID ); 200 register_shutdown_function('do_trackbacks', $post_ID); 202 201 } 203 202 … … 435 434 if ($post_status == 'publish') { 436 435 do_action('publish_post', $post_ID); 437 do_trackbacks($post_ID);438 do_enclose($content, $post_ID );436 register_shutdown_function('do_trackbacks', $post_ID); 437 register_shutdown_function('do_enclose', $content, $post_ID ); 439 438 if ( get_option('default_pingback_flag') ) 440 pingback($content, $post_ID);439 register_shutdown_function('pingback', $content, $post_ID); 441 440 } 442 441 -
branches/1.5/wp-admin/users.php
r2477 r2780 73 73 VALUES 74 74 ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_domain', '$user_browser', '$now', '$new_users_can_blog', 'nickname', '$user_firstname', '$user_lastname', '$user_nicename', '$user_uri')"); 75 75 76 do_action('user_register', $wpdb->insert_id); 77 76 78 if ($result == false) 77 79 die (__('<strong>ERROR</strong>: Couldn’t register you!')); … … 97 99 } 98 100 99 $id = $_GET['id'];101 $id = (int) $_GET['id']; 100 102 $prom = $_GET['prom']; 101 103 … … 109 111 if ('up' == $prom) { 110 112 $new_level = $usertopromote_level + 1; 111 $ sql="UPDATE $wpdb->users SET user_level=$new_level WHERE ID = $id AND $new_level < $user_level";113 $wpdb->query("UPDATE $wpdb->users SET user_level=$new_level WHERE ID = $id AND $new_level < $user_level"); 112 114 } elseif ('down' == $prom) { 113 115 $new_level = $usertopromote_level - 1; 114 $sql="UPDATE $wpdb->users SET user_level=$new_level WHERE ID = $id AND $new_level < $user_level"; 115 } 116 $result = $wpdb->query($sql); 116 $wpdb->query("UPDATE $wpdb->users SET user_level=$new_level WHERE ID = $id AND $new_level < $user_level"); 117 } 117 118 118 119 header('Location: users.php'); -
branches/1.5/wp-includes/pluggable-functions.php
r2607 r2780 217 217 } 218 218 219 $notify_message = apply_filters('comment_notification_text', $notify_message); 220 $subject = apply_filters('comment_notification_subject', $subject); 221 $message_headers = apply_filters('comment_notification_headers', $message_headers); 222 219 223 $message_headers = "MIME-Version: 1.0\n" 220 224 . "$from\n" … … 241 245 $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); 242 246 $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); 243 $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID='$post->post_author' LIMIT 1");244 247 245 248 $comment_author_domain = gethostbyaddr($comment->comment_author_IP); … … 261 264 $admin_email = get_settings("admin_email"); 262 265 266 $notify_message = apply_filters('comment_moderation_text', $notify_message); 267 $subject = apply_filters('comment_moderation_subject', $subject); 268 263 269 @wp_mail($admin_email, $subject, $notify_message); 264 270 -
branches/1.5/wp-includes/template-functions-category.php
r2616 r2780 263 263 } 264 264 265 $exclusions = apply_filters('list_cats_exclusions', $exclusions); 266 265 267 if (intval($categories)==0){ 266 268 $sort_column = 'cat_'.$sort_column; -
branches/1.5/wp-includes/version.php
r2672 r2780 3 3 // This just holds the version number, in a separate file so we can bump it without cluttering the SVN 4 4 5 $wp_version = '1.5. 1.3';5 $wp_version = '1.5.2'; 6 6 7 7 ?> -
branches/1.5/xmlrpc.php
r2778 r2780 577 577 578 578 // FIXME: do we pingback always? pingback($content, $post_ID); 579 trackback_url_list($content_struct['mt_tb_ping_urls'],$post_ID); 579 // trackback_url_list($content_struct['mt_tb_ping_urls'],$post_ID); 580 581 if ('publish' == $post_status) { 582 if ($post_pingback) pingback($content, $post_ID); 583 do_enclose( $content, $post_ID ); 584 do_trackbacks($post_ID); 585 do_action('publish_post', $post_ID); 586 } 580 587 581 588 return strval($post_ID); … … 661 668 662 669 // FIXME: do we pingback always? pingback($content, $post_ID); 663 trackback_url_list($content_struct['mt_tb_ping_urls'], $post_ID); 670 // trackback_url_list($content_struct['mt_tb_ping_urls'], $post_ID); 671 if ('publish' == $post_status) { 672 if ($post_pingback) pingback($content, $post_ID); 673 do_enclose( $content, $post_ID ); 674 do_trackbacks($post_ID); 675 do_action('publish_post', $post_ID); 676 } 677 do_action('edit_post', $post_ID); 664 678 665 679 return true;
Note: See TracChangeset
for help on using the changeset viewer.