mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
The great renaming.
git-svn-id: https://develop.svn.wordpress.org/trunk@601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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&post=$id";
|
||||
echo " - <a href='post.php?action=edit&post=$id";
|
||||
if ($m)
|
||||
echo "&m=$m";
|
||||
echo "'>Edit</a>";
|
||||
echo " - <a href='wp-post.php?action=delete&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&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&comment=".$comment->comment_ID."\">Edit</a>";
|
||||
echo " - <a href=\"wp-post.php?action=deletecomment&p=".$post->ID."&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&comment=".$comment->comment_ID."\">Edit</a>";
|
||||
echo " - <a href=\"post.php?action=deletecomment&p=".$post->ID."&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&p=".$post->ID."&comment=".$comment->comment_ID."\">Unapprove</a> ";
|
||||
echo " - <a href=\"post.php?action=unapprovecomment&p=".$post->ID."&comment=".$comment->comment_ID."\">Unapprove</a> ";
|
||||
} else {
|
||||
echo " - <a href=\"wp-post.php?action=approvecomment&p=".$post->ID."&comment=".$comment->comment_ID."\">Approve</a> ";
|
||||
echo " - <a href=\"post.php?action=approvecomment&p=".$post->ID."&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');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user