From 492aa4ee7086ed94cb2f37a2bce3b52905841659 Mon Sep 17 00:00:00 2001
From: donncha
Date: Fri, 9 Mar 2007 15:17:25 +0000
Subject: WP Merge to rev 5007
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@909 7be80a69-a1ef-0310-a953-fb0f7c49ff36
---
app.php | 4 +-
wp-admin/admin-functions.php | 27 +-
wp-admin/admin-header.php | 2 +-
wp-admin/cat.js | 10 +
wp-admin/custom-header.php | 6 +-
wp-admin/dbx-admin-key.js | 47 ++
wp-admin/edit-comments.php | 14 +-
wp-admin/edit-form-advanced.php | 2 +-
wp-admin/edit-link-form.php | 6 +-
wp-admin/edit.php | 8 +-
wp-admin/import/blogger.php | 4 +-
wp-admin/link-add.php | 2 +-
wp-admin/menu.php | 4 +-
wp-admin/moderation.php | 2 +-
wp-admin/options-general.php | 16 +-
wp-admin/options-misc.php | 2 +-
wp-admin/options-writing.php | 2 +-
wp-admin/options.php | 2 +-
wp-admin/page.php | 4 +-
wp-admin/plugins.php | 2 +-
wp-admin/post.php | 4 +-
wp-admin/setup-config.php | 6 +-
wp-admin/templates.php | 2 +-
wp-admin/themes.php | 10 +-
wp-admin/upgrade-functions.php | 16 +-
wp-admin/upload-functions.php | 2 +-
wp-admin/upload.js | 273 +++++++++
wp-blog-header.php | 2 +-
wp-config-sample.php | 5 +-
wp-content/themes/default/functions.php | 4 +-
wp-content/themes/default/searchform.php | 2 +-
wp-content/themes/default/sidebar.php | 10 +-
wp-includes/bookmark-template.php | 8 +-
wp-includes/classes.php | 8 +-
wp-includes/comment-template.php | 26 +-
wp-includes/cron.php | 14 +-
wp-includes/feed.php | 2 +-
wp-includes/formatting.php | 9 +-
wp-includes/functions.php | 34 +-
wp-includes/general-template.php | 65 ++-
wp-includes/js/autosave.js | 158 +++++
wp-includes/js/jquery/jquery.form.js | 644 +++++++++++++++++++++
wp-includes/js/jquery/jquery.js | 3 +-
wp-includes/js/list-manipulation.js | 295 ++++++++++
.../spellchecker/classes/TinyGoogleSpell.class.php | 91 ++-
.../spellchecker/classes/TinyPspellShell.class.php | 29 +-
.../js/tinymce/plugins/spellchecker/config.php | 21 +-
.../tinymce/plugins/spellchecker/css/content.css | 1 -
.../plugins/spellchecker/css/spellchecker.css | 1 +
.../tinymce/plugins/spellchecker/editor_plugin.js | 574 +-----------------
.../js/tinymce/plugins/spellchecker/langs/en.js | 3 +-
.../js/tinymce/plugins/spellchecker/tinyspell.php | 41 +-
.../js/tinymce/plugins/wordpress/wordpress.css | 1 -
wp-includes/js/tinymce/wp-mce-help.php | 2 +-
wp-includes/js/wp-ajax.js | 100 ++++
wp-includes/link-template.php | 6 +-
wp-includes/pluggable.php | 2 +-
wp-includes/post.php | 4 +-
wp-includes/query.php | 170 +++---
wp-includes/rewrite.php | 10 +-
wp-includes/rss.php | 4 +-
wp-includes/script-loader.php | 144 ++++-
wp-includes/theme.php | 3 +-
wp-includes/vars.php | 4 +-
wp-includes/wp-db.php | 2 +-
wp-login.php | 14 +-
wp-settings.php | 57 +-
xmlrpc.php | 51 +-
68 files changed, 2153 insertions(+), 950 deletions(-)
create mode 100644 wp-admin/cat.js
create mode 100644 wp-admin/dbx-admin-key.js
create mode 100644 wp-admin/upload.js
create mode 100644 wp-includes/js/autosave.js
create mode 100644 wp-includes/js/jquery/jquery.form.js
create mode 100644 wp-includes/js/list-manipulation.js
create mode 100644 wp-includes/js/wp-ajax.js
diff --git a/app.php b/app.php
index b22bbd2..08fd3d1 100644
--- a/app.php
+++ b/app.php
@@ -192,7 +192,7 @@ class AtomParser {
$this->in_content = array();
} else {
$endtag = $this->ns_to_prefix($name);
- if(strstr($this->in_content[count($this->in_content)-1], "<$endtag")) {
+ if (strpos($this->in_content[count($this->in_content)-1], '<' . $endtag) !== false) {
array_push($this->in_content, "/>");
} else {
array_push($this->in_content, "$endtag>");
@@ -220,7 +220,7 @@ class AtomParser {
#print str_repeat(" ", $this->depth * $this->indent) . "data: #" . $data . "#\n";
if(!empty($this->in_content)) {
// handle self-closing tags (case: text node found, need to close element started)
- if(strstr($this->in_content[count($this->in_content)-1], "<")) {
+ if (strpos($this->in_content[count($this->in_content)-1], '<') !== false) {
array_push($this->in_content, ">");
}
array_push($this->in_content, $this->xml_escape($data));
diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php
index 7e89d3b..79fe7e4 100644
--- a/wp-admin/admin-functions.php
+++ b/wp-admin/admin-functions.php
@@ -1156,7 +1156,7 @@ function insert_with_markers( $filename, $marker, $insertion ) {
if ( $markerdata ) {
$state = true;
foreach ( $markerdata as $n => $markerline ) {
- if ( strstr( $markerline, "# BEGIN {$marker}" ))
+ if (strpos($markerline, '# BEGIN ' . $marker) !== false)
$state = false;
if ( $state ) {
if ( $n + 1 < count( $markerdata ) )
@@ -1164,7 +1164,7 @@ function insert_with_markers( $filename, $marker, $insertion ) {
else
fwrite( $f, "{$markerline}" );
}
- if ( strstr( $markerline, "# END {$marker}" ) ) {
+ if (strpos($markerline, '# END ' . $marker) !== false) {
fwrite( $f, "# BEGIN {$marker}\n" );
if ( is_array( $insertion ))
foreach ( $insertion as $insertline )
@@ -1202,11 +1202,11 @@ function extract_from_markers( $filename, $marker ) {
{
$state = false;
foreach ( $markerdata as $markerline ) {
- if ( strstr( $markerline, "# END {$marker}" ))
+ if (strpos($markerline, '# END ' . $marker) !== false)
$state = false;
if ( $state )
$result[] = $markerline;
- if ( strstr( $markerline, "# BEGIN {$marker}" ))
+ if (strpos($markerline, '# BEGIN ' . $marker) !== false)
$state = true;
}
}
@@ -1558,6 +1558,14 @@ function add_theme_page( $page_title, $menu_title, $access_level, $file, $functi
return add_submenu_page( 'themes.php', $page_title, $menu_title, $access_level, $file, $function );
}
+function add_users_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
+ if ( current_user_can('edit_users') )
+ $parent = 'users.php';
+ else
+ $parent = 'profile.php';
+ return add_submenu_page( $parent, $page_title, $menu_title, $access_level, $file, $function );
+}
+
function validate_file( $file, $allowed_files = '' ) {
if ( false !== strpos( $file, './' ))
return 1;
@@ -1771,7 +1779,8 @@ function browse_happy() {

';
}
-if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ))
+
+if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)
add_action( 'admin_footer', 'browse_happy' );
function documentation_link( $for ) {
@@ -1932,14 +1941,14 @@ function wp_import_cleanup( $id ) {
function wp_import_upload_form( $action ) {
$size = strtolower( ini_get( 'upload_max_filesize' ) );
$bytes = 0;
- if ( strstr( $size, 'k' ) )
+ if (strpos($size, 'k') !== false)
$bytes = $size * 1024;
- if ( strstr( $size, 'm' ) )
+ if (strpos($size, 'm') !== false)
$bytes = $size * 1024 * 1024;
- if ( strstr( $size, 'g' ) )
+ if (strpos($size, 'g') !== false)
$bytes = $size * 1024 * 1024 * 1024;
?>
-
+.
@@ -38,7 +38,7 @@ if ($drafts || $other_drafts) {
foreach ($other_drafts as $draft) {
if (0 != $i)
echo ', ';
- $draft->post_title = stripslashes($draft->post_title);
+ $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
if ($draft->post_title == '')
$draft->post_title = sprintf(__('Post #%s'), $draft->ID);
echo "
- |
- |