From cdc9a55ad9c32bd83e63e389380284e2863a885c Mon Sep 17 00:00:00 2001
From: saxmatt
Date: Sun, 9 May 2004 05:47:02 +0000
Subject: [PATCH] Various fixes and cleanups, inspired and pointed out by
Joseph Scott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/edit-comments.php | 4 ++--
wp-admin/edit-form.php | 2 +-
wp-admin/edit.php | 25 ++++++++++-----------
wp-admin/install.php | 10 +++++----
wp-admin/options-permalink.php | 4 ++--
wp-admin/plugins.php | 2 +-
wp-blog-header.php | 7 +++---
wp-includes/template-functions-category.php | 4 +---
wp-includes/template-functions-comment.php | 4 ++--
wp-includes/template-functions-links.php | 22 +-----------------
wp.php | 2 +-
11 files changed, 33 insertions(+), 53 deletions(-)
diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
index c4e62cfa6b..3a091c1756 100644
--- a/wp-admin/edit-comments.php
+++ b/wp-admin/edit-comments.php
@@ -55,8 +55,8 @@ if (!empty($delete_comments)) {
echo "" . sprintf(__('%s comments deleted.'), $i) . "
";
}
-if ($s) {
- $s = $wpdb->escape($s);
+if (isset($_GET['s'])) {
+ $s = $wpdb->escape($_GET['s']);
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE
comment_author LIKE '%$s%' OR
comment_author_email LIKE '%$s%' OR
diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php
index 7acc86b47f..feddc2398f 100644
--- a/wp-admin/edit-form.php
+++ b/wp-admin/edit-form.php
@@ -97,7 +97,7 @@ edCanvas = document.getElementById('content');
';
} ?>
-
+
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index 726f58a1a4..9ce4f24f84 100644
--- a/wp-admin/edit.php
+++ b/wp-admin/edit.php
@@ -45,25 +45,24 @@ if( isset( $_GET['m'] ) )
@@ -92,13 +91,14 @@ if( isset( $_GET['m'] ) )
include(ABSPATH.'wp-blog-header.php');
if ($posts) {
+$bgcolor = '';
foreach ($posts as $post) { start_wp();
$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
?>
|
g:i:s a'); ?> |
-
+ |
post_status) _e(' - Private'); ?> |
@@ -122,7 +122,7 @@ $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
?>
get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");
if ($comments) {
@@ -171,7 +171,6 @@ $comment_status = wp_get_comment_status($comment->comment_ID);
echo '';
}//end if comments
?>
-
attempt automatically) before moving on.");
+if (!file_exists('../wp-config.php')) die(__("There doesn't seem to be a wp-config.php file. You must create one (attempt automatically) before moving on."));
require_once('../wp-config.php');
require('upgrade-functions.php');
-$step = $_GET['step'];
-if (!$step) $step = 0;
+if (isset($_GET['step']))
+ $step = $_GET['step'];
+else
+ $step = 0;
?>
@@ -48,7 +50,7 @@ if (!$step) $step = 0;
$wpdb->hide_errors();
$installed = $wpdb->get_results("SELECT * FROM $tableusers");
-if ($installed) die('You appear to already have WordPress installed. If you would like to reinstall please clear your old database files first.