Changeset 771
- Timestamp:
- 01/13/04 09:23:41 (5 years ago)
- Files:
-
- trunk/wp-admin/edit-form-comment.php (modified) (1 diff)
- trunk/wp-login.php (modified) (2 diffs)
- trunk/wp-mail.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-form-comment.php
r658 r771 101 101 102 102 </form> 103 103 <p><a href="post.php?action=deletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>">Delete this comment</a>.</p> 104 104 </div> trunk/wp-login.php
r743 r771 201 201 break; 202 202 203 204 203 case 'retrievepassword': 205 204 … … 212 211 $message = "Login: $user_login\r\n"; 213 212 $message .= "Password: $user_pass\r\n"; 213 $message .= "Login at: $siteurl/wp-login.php"; 214 214 215 215 $m = mail($user_email, "[$blogname] Your weblog's login/password", $message); trunk/wp-mail.php
r628 r771 210 210 211 211 $post_title = xmlrpc_getposttitle($content); 212 $post_categor y= xmlrpc_getpostcategory($content);212 $post_categories[] = xmlrpc_getpostcategory($content); 213 213 214 214 if ($post_title == '') { 215 215 $post_title = $subject; 216 216 } 217 if ( $post_category == '') {218 $post_categor y= $default_category;217 if (empty($post_categories)) { 218 $post_categories[] = $default_category; 219 219 } 220 220 221 221 if (!$thisisforfunonly) { 222 222 $post_title = addslashes(trim($post_title)); 223 $content = preg_replace("|\n([^\n])|", " $1", $content); 223 224 $content = addslashes(trim($content)); 224 225 if($flat > 500) { … … 238 239 pingGeoUrl($post_ID); 239 240 } 240 // HACK HACK HACK this next line is commented out because I don't know what the word-press replacement 241 // is. right now it's undefined and does not work 242 //rss_update($blog_ID); 241 243 242 pingWeblogs($blog_ID); 244 pingCafelog($cafelogID, $post_title, $post_ID);245 243 pingBlogs($blog_ID); 246 244 pingback($content, $post_ID); … … 248 246 echo "\n<p><b>Posted title:</b> $post_title<br />"; 249 247 echo "\n<b>Posted content:</b><br /><pre>".$content.'</pre></p>'; 248 249 if (!$post_categories) $post_categories[] = 1; 250 foreach ($post_categories as $post_category) { 251 // Double check it's not there already 252 $exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category"); 253 254 if (!$exists && $result) { 255 $wpdb->query(" 256 INSERT INTO $tablepost2cat 257 (post_id, category_id) 258 VALUES 259 ($post_ID, $post_category) 260 "); 261 } 262 } 250 263 251 264 if(!$pop3->delete($iCount)) {
