Index: wp-includes/post-template.php =================================================================== --- wp-includes/post-template.php (.../2.1) (revision 5900) +++ wp-includes/post-template.php (.../2.1.1) (revision 5900) @@ -273,6 +273,7 @@ $r = array_merge($defaults, $r); $output = ''; + $current_page = 0; // sanitize, mostly to keep spaces out $r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']); @@ -288,7 +289,8 @@ $output .= '
$1
\n", $pee); // make paragraphs, including one at the end $pee = preg_replace('|\s*?
|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace - $pee = preg_replace( '|(
", $pee ); $pee = preg_replace('!
([^<]+)\s*?((?:div|address|form)[^>]*>)!', "
$1
$2", $pee); $pee = preg_replace( '||', "$1
", $pee ); $pee = preg_replace('!
\s*(?' . $allblocks . '[^>]*>)\s*
!', "$1", $pee); // don't pee all over a tag @@ -82,7 +81,7 @@ if ( strstr( $pee, ')(.*?)!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '' ", $pee); $pee = preg_replace( "|\n$|", '', $pee ); -/**/ + return $pee; } Index: wp-includes/category.php =================================================================== --- wp-includes/category.php (.../2.1) (revision 5900) +++ wp-includes/category.php (.../2.1.1) (revision 5900) @@ -33,7 +33,7 @@ $key = md5( serialize( $r ) ); if ( $cache = wp_cache_get( 'get_categories', 'category' ) ) if ( isset( $cache[ $key ] ) ) - return $cache[ $key ]; + return apply_filters('get_categories', $cache[$key], $r); $where = 'cat_ID > 0'; $inclusions = ''; Index: wp-includes/post.php =================================================================== --- wp-includes/post.php (.../2.1) (revision 5900) +++ wp-includes/post.php (.../2.1.1) (revision 5900) @@ -74,16 +74,16 @@ // get extended entry info () function get_extended($post) { //Match the new style more links - if (preg_match('//', $post, $matches)) { - list($main,$extended) = explode($matches[0],$post,2); + if ( preg_match('//', $post, $matches) ) { + list($main, $extended) = explode($matches[0], $post, 2); } else { $main = $post; $extended = ''; } // Strip leading and trailing whitespace - $main = preg_replace('/^[\s]*(.*)[\s]*$/','\\1',$main); - $extended = preg_replace('/^[\s]*(.*)[\s]*$/','\\1',$extended); + $main = preg_replace('/^[\s]*(.*)[\s]*$/', '\\1', $main); + $extended = preg_replace('/^[\s]*(.*)[\s]*$/', '\\1', $extended); return array('main' => $main, 'extended' => $extended); } Index: wp-includes/version.php =================================================================== --- wp-includes/version.php (.../2.1) (revision 5900) +++ wp-includes/version.php (.../2.1.1) (revision 5900) @@ -2,7 +2,7 @@ // This holds the version number in a separate file so we can bump it without cluttering the SVN -$wp_version = '2.1'; -$wp_db_version = 4772; +$wp_version = '2.1.1'; +$wp_db_version = 4773; ?> Index: wp-includes/js/scriptaculous/wp-scriptaculous.js =================================================================== --- wp-includes/js/scriptaculous/wp-scriptaculous.js (.../2.1) (revision 0) +++ wp-includes/js/scriptaculous/wp-scriptaculous.js (.../2.1.1) (revision 5900) @@ -0,0 +1,40 @@ +// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. + +var Scriptaculous = { + Version: '1.6.1', + require: function(libraryName) { + // inserting via DOM fails in Safari 2.0, so brute force approach + document.write(''); + }, + load: function() { + if((typeof Prototype=='undefined') || + (typeof Element == 'undefined') || + (typeof Element.Methods=='undefined') || + parseFloat(Prototype.Version.split(".")[0] + "." + + Prototype.Version.split(".")[1]) < 1.5) + throw("script.aculo.us requires the Prototype JavaScript framework >= 1.5.0"); + + $A(document.getElementsByTagName("script")).findAll( function(s) { + return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/)) + }).each( function(s) { + var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); + var includes = s.src.match(/\?.*load=([a-z,]*)/); + if ( includes ) + includes[1].split(',').each( + function(include) { Scriptaculous.require(path+include+'.js') }); + }); + } +} + +Scriptaculous.load(); Index: wp-includes/js/tinymce/tiny_mce_config.php =================================================================== --- wp-includes/js/tinymce/tiny_mce_config.php (.../2.1) (revision 5900) +++ wp-includes/js/tinymce/tiny_mce_config.php (.../2.1.1) (revision 5900) @@ -43,7 +43,7 @@ $mce_popups_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/popups.css'; $mce_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/wordpress.css'; $mce_css = apply_filters('mce_css', $mce_css); - if ( $_SERVER['HTTPS'] ) { + if ( $_SERVER['HTTPS'] == 'on' ) { $mce_css = str_replace('http://', 'https://', $mce_css); $mce_popups_css = str_replace('http://', 'https://', $mce_popups_css); } Index: wp-includes/js/tinymce/wp-mce-help.php =================================================================== --- wp-includes/js/tinymce/wp-mce-help.php (.../2.1) (revision 5900) +++ wp-includes/js/tinymce/wp-mce-help.php (.../2.1.1) (revision 5900) @@ -1,4 +1,6 @@ - + > Index: wp-includes/js/tinymce/tiny_mce_gzip.php =================================================================== --- wp-includes/js/tinymce/tiny_mce_gzip.php (.../2.1) (revision 5900) +++ wp-includes/js/tinymce/tiny_mce_gzip.php (.../2.1.1) (revision 5900) @@ -6,7 +6,7 @@ * * @version 1.08 * @author Moxiecode - * @copyright Copyright © 2005-2006, Moxiecode Systems AB, All rights reserved. + * @copyright Copyright 2005-2006, Moxiecode Systems AB, All rights reserved. * * This file compresses the TinyMCE JavaScript using GZip and * enables the browser to do two requests instead of one for each .js file. @@ -82,7 +82,7 @@ $debug = false; // Enable this option if you need debuging info // Headers -header("Content-type: text/javascript; charset: UTF-8"); +header("Content-Type: text/javascript; charset=" . get_bloginfo('charset')); // header("Cache-Control: must-revalidate"); header("Vary: Accept-Encoding"); // Handle proxies header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT"); Index: wp-includes/capabilities.php =================================================================== --- wp-includes/capabilities.php (.../2.1) (revision 5900) +++ wp-includes/capabilities.php (.../2.1.1) (revision 5900) @@ -55,7 +55,7 @@ unset($this->role_objects[$role]); unset($this->role_names[$role]); unset($this->roles[$role]); - + if ( $this->use_db ) update_option($this->role_key, $this->roles); } @@ -427,7 +427,7 @@ } $author_data = get_userdata($user_id); - $page_author_data = get_userdata($post->post_author); + $page_author_data = get_userdata($page->post_author); if ($user_id == $page_author_data->ID) $caps[] = 'read'; else Index: wp-includes/cron.php =================================================================== --- wp-includes/cron.php (.../2.1) (revision 5900) +++ wp-includes/cron.php (.../2.1.1) (revision 5900) @@ -93,6 +93,10 @@ } function wp_cron() { + // Prevent infinite loops caused by lack of wp-cron.php + if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false ) + return; + $crons = _get_cron_array(); if ( !is_array($crons) ) Index: wp-includes/functions.php =================================================================== --- wp-includes/functions.php (.../2.1) (revision 5900) +++ wp-includes/functions.php (.../2.1.1) (revision 5900) @@ -1205,9 +1205,9 @@ $html .= "\t\t\n"; } $html .= "\t\t\n"; - $html .= "\t\t
" . wp_explain_nonce($action) . "
\n\t\t\n\t\t" . wp_specialchars(wp_explain_nonce($action)) . "
\n\t\t\n\t\t" . wp_explain_nonce($action) . "
\n\t\n\t" . wp_specialchars(wp_explain_nonce($action)) . "
\n\t\n\t| UTC time is:') ?> | - |
+ |
|---|---|---|
| Index: wp-admin/edit.php =================================================================== --- wp-admin/edit.php (.../2.1) (revision 5900) +++ wp-admin/edit.php (.../2.1.1) (revision 5900) @@ -177,7 +177,7 @@ case 'date': ?> - | post_modified ) _e('Unpublished'); else the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?> | +post_modified ) _e('Unpublished'); else the_time(_('Y-m-d \<\b\r \/\> g:i:s a')); ?> | -
<--more--> feature, it will cut off posts in RSS feeds.'); ?>
+<!--more--> feature, it will cut off posts in RSS feeds.'); ?>