Changeset 496
- Timestamp:
- 10/30/2003 01:54:05 AM (21 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2edit.php
r479 r496 407 407 $mn = ($mn > 59) ? $mn - 60 : $mn; 408 408 $ss = ($ss > 59) ? $ss - 60 : $ss; 409 $datemodif = ", comment_date = ' aa-$mm-$jj $hh:$mn:$ss'";409 $datemodif = ", comment_date = '$aa-$mm-$jj $hh:$mn:$ss'"; 410 410 } else { 411 411 $datemodif = ''; -
trunk/wp-admin/wp-post.php
r489 r496 151 151 152 152 case 'edit': 153 153 $title = 'Edit'; 154 154 155 155 $standalone = 0; … … 324 324 325 325 case 'editcomment': 326 326 $title = 'Edit Comment'; 327 327 $standalone = 0; 328 328 require_once ('b2header.php'); … … 347 347 $standalone = 1; 348 348 require_once('./b2header.php'); 349 349 350 350 if ($user_level == 0) 351 351 die ('Cheatin’ uh?'); 352 352 353 353 $comment = $HTTP_GET_VARS['comment']; 354 354 $p = $HTTP_GET_VARS['p']; 355 355 $commentdata = get_commentdata($comment) or die('Oops, no comment with this ID. <a href="b2edit.php">Go back</a>!'); 356 356 357 357 $result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_ID=$comment"); 358 358 359 359 header ('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); 360 360 361 361 break; 362 362 … … 389 389 $mn = ($mn > 59) ? $mn - 60 : $mn; 390 390 $ss = ($ss > 59) ? $ss - 60 : $ss; 391 $datemodif = ", comment_date = ' aa-$mm-$jj $hh:$mn:$ss'";391 $datemodif = ", comment_date = '$aa-$mm-$jj $hh:$mn:$ss'"; 392 392 } else { 393 393 $datemodif = ''; … … 404 404 WHERE comment_ID = $comment_ID" 405 405 ); 406 406 407 407 $referredby = $HTTP_POST_VARS['referredby']; 408 408 if (!empty($referredby)) header('Location: ' . $referredby); … … 429 429 $i = 0; 430 430 foreach ($drafts as $draft) { 431 if (0 != $i) echo ', '; 432 $draft->post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = 'post-'.$draft->ID; 431 if (0 != $i) 432 echo ', '; 433 $draft->post_title = stripslashes($draft->post_title); 434 if ($draft->post_title == '') 435 $draft->post_title = 'post-'.$draft->ID; 433 436 echo "<a href='b2edit.php?action=edit&post=$draft->ID' title='Edit this draft'>$draft->post_title</a>"; 434 437 ++$i; … … 460 463 461 464 } 462 465 463 466 break; 464 467 } // end switch
Note: See TracChangeset
for help on using the changeset viewer.