Not Found
@@ -11,11 +11,11 @@
diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 7be6e69714..4b99ebae5d 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -61,7 +61,7 @@ do_action('edit_' . $taxonomy . '_form_pre', $tag, $taxonomy); ?> ?>
- -exists($destination) ) return false; - // try using rename first. if that fails (for example, source is read only) try copy + // try using rename first. if that fails (for example, source is read only) try copy if ( @rename($source, $destination) ) return true; diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index b37f6fdb42..b9557b1390 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -565,17 +565,17 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) { else $needed_dirs[] = $to . untrailingslashit(dirname($info['name'])); } - + $needed_dirs = array_unique($needed_dirs); asort($needed_dirs); - + // Create those directories if need be: foreach ( $needed_dirs as $_dir ) { if ( ! $wp_filesystem->mkdir($_dir, FS_CHMOD_DIR) && ! $wp_filesystem->is_dir($_dir) ) // Only check to see if the Dir exists upon creation failure. Less I/O this way. return new WP_Error('mkdir_failed', __('Could not create directory.'), $_dir); } unset($needed_dirs); - + for ( $i = 0; $i < $z->numFiles; $i++ ) { if ( ! $info = $z->statIndex($i) ) return new WP_Error('stat_failed', __('Could not retrieve file from archive.')); diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index a11b110c81..dbe86f5434 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -482,7 +482,7 @@ function wp_write_post() { foreach ( $draft_ids as $temp => $real ) if ( time() + $temp > 86400 ) // 1 day: $temp is equal to -1 * time( then ) unset($draft_ids[$temp]); - + if ( isset($draft_ids[$temp_id]) ) { // Edit, don't write $_POST['post_ID'] = $draft_ids[$temp_id]; unset($_POST['temp_ID']); diff --git a/wp-admin/js/post.dev.js b/wp-admin/js/post.dev.js index 8ee991533b..6faee1ac0b 100644 --- a/wp-admin/js/post.dev.js +++ b/wp-admin/js/post.dev.js @@ -253,15 +253,15 @@ jQuery(document).ready( function($) { } // categories - $('.categorydiv').each(function(){ - var this_id = $(this).attr('id'), noSyncChecks = false, syncChecks, catAddAfter, popularCats; - var taxonomy_parts = this_id.split('-'); + $('.categorydiv').each(function(){ + var this_id = $(this).attr('id'), noSyncChecks = false, syncChecks, catAddAfter, popularCats; + var taxonomy_parts = this_id.split('-'); taxonomy_parts.shift(); var taxonomy = taxonomy_parts.join('-'); - var settingName = taxonomy+'_tab'; - if(taxonomy == 'category') - settingName = 'cats'; - + var settingName = taxonomy+'_tab'; + if(taxonomy == 'category') + settingName = 'cats'; + // TODO: move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.dev.js $('a', '#'+taxonomy+'-tabs').click(function(){ var t = $(this).attr('href'); @@ -274,25 +274,25 @@ jQuery(document).ready( function($) { setUserSetting(settingName,'pop'); return false; }); - + if ( getUserSetting(settingName) ) $('a[href="#'+taxonomy+'-pop"]', '#'+taxonomy+'-tabs').click(); // Ajax Cat - $('#new'+taxonomy).one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); - $('#'+taxonomy+'-add-submit').click(function(){$('#new'+taxonomy).focus();}); - - syncChecks = function() { - if ( noSyncChecks ) - return; - noSyncChecks = true; - var th = jQuery(this), c = th.is(':checked'), id = th.val().toString(); - $('#in-'+taxonomy+'-' + id + ', #in-'+taxonomy+'-category-' + id).attr( 'checked', c ); - noSyncChecks = false; - }; - - - + $('#new'+taxonomy).one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); + $('#'+taxonomy+'-add-submit').click(function(){$('#new'+taxonomy).focus();}); + + syncChecks = function() { + if ( noSyncChecks ) + return; + noSyncChecks = true; + var th = jQuery(this), c = th.is(':checked'), id = th.val().toString(); + $('#in-'+taxonomy+'-' + id + ', #in-'+taxonomy+'-category-' + id).attr( 'checked', c ); + noSyncChecks = false; + }; + + + catAddBefore = function( s ) { if ( !$('#new'+taxonomy).val() ) return false; diff --git a/wp-admin/network.php b/wp-admin/network.php index 97b4919cc5..66e40c2a52 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -363,7 +363,7 @@ switch( $action ) { case 'step2': check_admin_referer( 'install-network-1' ); - if ( isset( $_POST[ 'existing_network' ] ) ) { + if ( isset( $_POST[ 'existing_network' ] ) ) { // Install! $base = stripslashes( dirname( dirname( $_SERVER['SCRIPT_NAME'] ) ) ); if ( $base != '/' ) diff --git a/wp-content/themes/twentyten/404.php b/wp-content/themes/twentyten/404.php index 97bc7c3dc7..7605688507 100644 --- a/wp-content/themes/twentyten/404.php +++ b/wp-content/themes/twentyten/404.php @@ -2,7 +2,7 @@