The great renaming.

git-svn-id: https://develop.svn.wordpress.org/trunk@601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-12-11 00:22:36 +00:00
parent c1ba1f019d
commit 9c6a0a9403
72 changed files with 832 additions and 830 deletions

View File

@@ -1,6 +1,6 @@
<?php
$title = 'Edit Posts';
require_once('b2header.php');
require_once('admin-header.php');
if (!$showposts) {
if ($posts_per_page) {
$showposts=$posts_per_page;
@@ -38,7 +38,7 @@ ob_start();
<ul id="adminmenu2">
<li><a href="edit.php" class="current">Latest Posts</a></li>
<li><a href="edit-comments.php">Latest Comments</a></li>
<li class="last"><a href="wp-moderation.php">Comments Awaiting Moderation</a></li>
<li class="last"><a href="moderation.php">Comments Awaiting Moderation</a></li>
</ul>
<div class="wrap">
@@ -233,7 +233,7 @@ echo $posts_nav_bar;
</table>
<?php
include($abspath.'blog.header.php');
include($abspath.'wp-blog-header.php');
if ($posts) {
foreach ($posts as $post) { start_b2();
@@ -242,11 +242,11 @@ foreach ($posts as $post) { start_b2();
<strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="edit.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments", true) ?></a>
<?php
if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
echo " - <a href='wp-post.php?action=edit&amp;post=$id";
echo " - <a href='post.php?action=edit&amp;post=$id";
if ($m)
echo "&m=$m";
echo "'>Edit</a>";
echo " - <a href='wp-post.php?action=delete&amp;post=$id' onclick=\"return confirm('You are about to delete this post \'".the_title('','',0)."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> ";
echo " - <a href='post.php?action=delete&amp;post=$id' onclick=\"return confirm('You are about to delete this post \'".the_title('','',0)."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> ";
}
if ('private' == $post->post_status) echo ' - <strong>Private</strong>';
?>
@@ -284,13 +284,13 @@ foreach ($posts as $post) { start_b2();
<?php comment_date('Y/m/d') ?> @ <?php comment_time() ?>
<?php
if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
echo "[ <a href=\"wp-post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
echo " - <a href=\"wp-post.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> ";
echo "[ <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">Edit</a>";
echo " - <a href=\"post.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'OK\' to delete, \'Cancel\' to stop.')\">Delete</a> ";
if ( ('none' != $comment_status) && ($user_level >= 3) ) {
if ('approved' == wp_get_comment_status($comment->comment_ID)) {
echo " - <a href=\"wp-post.php?action=unapprovecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">Unapprove</a> ";
echo " - <a href=\"post.php?action=unapprovecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">Unapprove</a> ";
} else {
echo " - <a href=\"wp-post.php?action=approvecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">Approve</a> ";
echo " - <a href=\"post.php?action=approvecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\">Approve</a> ";
}
}
echo "]";
@@ -320,7 +320,7 @@ foreach ($posts as $post) { start_b2();
<!-- form to add a comment -->
<form action="<?php echo $siteurl.'/b2comments.post.php'?>" method="post">
<form action="<?php echo $siteurl.'/wp-comments-post.php'?>" method="post">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo $HTTP_SERVER_VARS["REQUEST_URI"]; ?>" />
<input type="text" name="author" class="textarea" value="<?php echo $user_nickname ?>" size="20" tabindex="1" /><br />
@@ -357,5 +357,5 @@ foreach ($posts as $post) { start_b2();
<?php
// uncomment this to show the nav bar at the bottom as well
echo $posts_nav_bar;
include('b2footer.php');
include('admin-footer.php');
?>