Permalink
Browse files

Death to trailing tabs. Props Mark J. fixes #2405

git-svn-id: http://svn.automattic.com/wordpress/trunk@3517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 17b47c6 commit dd202ce1f93f17941127eb74391df1f09672971b ryan committed Feb 12, 2006
Showing with 1,019 additions and 1,019 deletions.
  1. +3 −3 readme.html
  2. +15 −15 wp-admin/admin-db.php
  3. +19 −19 wp-admin/admin-functions.php
  4. +9 −9 wp-admin/admin.php
  5. +3 −3 wp-admin/bookmarklet.php
  6. +7 −7 wp-admin/cat-js.php
  7. +2 −2 wp-admin/categories.php
  8. +3 −3 wp-admin/edit-comments.php
  9. +3 −3 wp-admin/edit-form-ajax-cat.php
  10. +4 −4 wp-admin/edit.php
  11. +16 −16 wp-admin/import/blogger.php
  12. +75 −75 wp-admin/import/dotclear.php
  13. +8 −8 wp-admin/import/livejournal.php
  14. +2 −2 wp-admin/import/mt.php
  15. +6 −6 wp-admin/import/rss.php
  16. +77 −77 wp-admin/import/textpattern.php
  17. +4 −4 wp-admin/install.php
  18. +8 −8 wp-admin/link-manager.php
  19. +2 −2 wp-admin/list-manipulation.js
  20. +2 −2 wp-admin/list-manipulation.php
  21. +1 −1 wp-admin/menu-header.php
  22. +1 −1 wp-admin/moderation.php
  23. +4 −4 wp-admin/options-permalink.php
  24. +3 −3 wp-admin/options.php
  25. +1 −1 wp-admin/page-new.php
  26. +3 −3 wp-admin/plugin-editor.php
  27. +3 −3 wp-admin/plugins.php
  28. +9 −9 wp-admin/post.php
  29. +1 −1 wp-admin/setup-config.php
  30. +3 −3 wp-admin/templates.php
  31. +3 −3 wp-admin/theme-editor.php
  32. +5 −5 wp-admin/themes.php
  33. +29 −29 wp-admin/upgrade-functions.php
  34. +9 −9 wp-admin/upgrade-schema.php
  35. +4 −4 wp-admin/upgrade.php
  36. +1 −1 wp-admin/user-edit.php
  37. +13 −13 wp-admin/users.php
  38. +1 −1 wp-admin/wp-admin.css
  39. +1 −1 wp-admin/xfn.js
  40. +2 −2 wp-commentsrss2.php
  41. +88 −88 wp-content/plugins/wp-db-backup.php
  42. +1 −1 wp-content/themes/classic/comments-popup.php
  43. +2 −2 wp-content/themes/classic/header.php
  44. +3 −3 wp-content/themes/classic/index.php
  45. +1 −1 wp-content/themes/classic/sidebar.php
  46. +10 −10 wp-content/themes/default/archive.php
  47. +1 −1 wp-content/themes/default/archives.php
  48. +17 −17 wp-content/themes/default/attachment.php
  49. +1 −1 wp-content/themes/default/comments-popup.php
  50. +5 −5 wp-content/themes/default/comments.php
  51. +5 −5 wp-content/themes/default/functions.php
  52. +3 −3 wp-content/themes/default/header.php
  53. +6 −6 wp-content/themes/default/index.php
  54. +1 −1 wp-content/themes/default/links.php
  55. +2 −2 wp-content/themes/default/page.php
  56. +6 −6 wp-content/themes/default/search.php
  57. +7 −7 wp-content/themes/default/sidebar.php
  58. +19 −19 wp-content/themes/default/single.php
  59. +11 −11 wp-content/themes/default/style.css
  60. +5 −5 wp-includes/cache.php
  61. +16 −16 wp-includes/capabilities.php
  62. +132 −132 wp-includes/class-snoopy.php
  63. +30 −30 wp-includes/classes.php
  64. +12 −12 wp-includes/comment-functions.php
  65. +6 −6 wp-includes/functions-formatting.php
  66. +34 −34 wp-includes/functions-post.php
  67. +19 −19 wp-includes/functions.php
  68. +5 −5 wp-includes/js/colorpicker.js
  69. +5 −5 wp-includes/js/fat.js
  70. +1 −1 wp-includes/js/quicktags.js
  71. +13 −13 wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
  72. +1 −1 wp-includes/js/tinymce/themes/advanced/jscripts/image.js
  73. +1 −1 wp-includes/js/tinymce/tiny_mce.js
  74. +1 −1 wp-includes/js/tinymce/wp-mce-help.php
  75. +5 −5 wp-includes/js/tw-sack.js
  76. +13 −13 wp-includes/pluggable-functions.php
  77. +15 −15 wp-includes/registration-functions.php
  78. +110 −110 wp-includes/rss-functions.php
  79. +2 −2 wp-includes/template-functions-links.php
  80. +1 −1 wp-includes/template-functions-post.php
  81. +1 −1 wp-includes/template-loader.php
  82. +13 −13 wp-includes/wp-db.php
  83. +4 −4 wp-includes/wp-l10n.php
  84. +5 −5 wp-login.php
  85. +2 −2 wp-mail.php
  86. +4 −4 wp-register.php
  87. +2 −2 wp-settings.php
  88. +7 −7 xmlrpc.php
View
@@ -16,17 +16,17 @@
margin-right: 25%;
padding: .2em 2em;
}
-
+
h1 {
color: #006;
font-size: 18px;
font-weight: lighter;
}
-
+
h2 {
font-size: 16px;
}
-
+
p, li, dt {
line-height: 140%;
padding-bottom: 2px;
View
@@ -14,7 +14,7 @@ function get_others_drafts( $user_id ) {
$level_key = $wpdb->prefix . 'user_level';
$editable = get_editable_user_ids( $user_id );
-
+
if( !$editable ) {
$other_drafts = '';
} else {
@@ -42,9 +42,9 @@ function get_editable_authors( $user_id ) {
function get_editable_user_ids( $user_id, $exclude_zeros = true ) {
global $wpdb;
-
+
$user = new WP_User( $user_id );
-
+
if ( ! $user->has_cap('edit_others_posts') ) {
if ( $user->has_cap('edit_posts') || $exclude_zeros == false )
return array($user->id);
@@ -57,7 +57,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true ) {
$query = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$level_key'";
if ( $exclude_zeros )
$query .= " AND meta_value != '0'";
-
+
return $wpdb->get_col( $query );
}
@@ -111,7 +111,7 @@ function wp_insert_category($catarr) {
} else {
$wpdb->query ("UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent' WHERE cat_ID = '$cat_ID'");
}
-
+
if ( $category_nicename == '' ) {
$category_nicename = sanitize_title($cat_name, $cat_ID );
$wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
@@ -242,7 +242,7 @@ function wp_delete_user($id, $reassign = 'novalue') {
function get_link($link_id, $output = OBJECT) {
global $wpdb;
-
+
$link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$link_id'");
if ( $output == OBJECT ) {
@@ -258,22 +258,22 @@ function get_link($link_id, $output = OBJECT) {
function wp_insert_link($linkdata) {
global $wpdb, $current_user;
-
+
extract($linkdata);
$update = false;
if ( !empty($link_id) )
$update = true;
if ( empty($link_rating) )
- $link_rating = 0;
+ $link_rating = 0;
if ( empty($link_target) )
- $link_target = '';
+ $link_target = '';
if ( empty($link_visible) )
$link_visible = 'Y';
-
+
if ( empty($link_owner) )
$link_owner = $current_user->id;
@@ -292,7 +292,7 @@ function wp_insert_link($linkdata) {
$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_image, link_target, link_category, link_description, link_visible, link_owner, link_rating, link_rel, link_notes, link_rss) VALUES('$link_url','$link_name', '$link_image', '$link_target', '$link_category', '$link_description', '$link_visible', '$link_owner', '$link_rating', '$link_rel', '$link_notes', '$link_rss')");
$link_id = $wpdb->insert_id;
}
-
+
if ( $update )
do_action('edit_link', $link_id);
else
@@ -305,12 +305,12 @@ function wp_update_link($linkdata) {
global $wpdb;
$link_id = (int) $linkdata['link_id'];
-
+
$link = get_link($link_id, ARRAY_A);
-
+
// Escape data pulled from DB.
$link = add_magic_quotes($link);
-
+
// Merge old and new fields with new fields overwriting old ones.
$linkdata = array_merge($link, $linkdata);
@@ -321,7 +321,7 @@ function wp_delete_link($link_id) {
global $wpdb;
do_action('delete_link', $link_id);
- return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
+ return $wpdb->query("DELETE FROM $wpdb->links WHERE link_id = '$link_id'");
}
function post_exists($title, $content = '', $post_date = '') {
@@ -6,7 +6,7 @@ function write_post() {
if ( 'page' == $_POST['post_type'] ) {
if ( !current_user_can('edit_pages') )
- die(__('You are not allowed to create pages on this blog.'));
+ die(__('You are not allowed to create pages on this blog.'));
} else {
if ( !current_user_can('edit_posts') )
die(__('You are not allowed to create posts or drafts on this blog.'));
@@ -30,13 +30,13 @@ function write_post() {
}
if ($_POST['post_author'] != $_POST['user_ID']) {
- if ( 'page' == $_POST['post_type'] ) {
+ if ( 'page' == $_POST['post_type'] ) {
if ( !current_user_can('edit_others_pages') )
die(__('You cannot create pages as this user.'));
} else {
if ( !current_user_can('edit_others_posts') )
die(__('You cannot post as this user.'));
-
+
}
}
@@ -52,7 +52,7 @@ function write_post() {
if ( 'page' == $_POST['post_type'] ) {
if ('publish' == $_POST['post_status'] && !current_user_can('publish_pages'))
- $_POST['post_status'] = 'draft';
+ $_POST['post_status'] = 'draft';
} else {
if ('publish' == $_POST['post_status'] && !current_user_can('publish_posts'))
$_POST['post_status'] = 'draft';
@@ -140,7 +140,7 @@ function edit_post() {
if ( 'page' == $_POST['post_type'] ) {
if ( !current_user_can('edit_page', $post_ID) )
- die(__('You are not allowed to edit this page.'));
+ die(__('You are not allowed to edit this page.'));
} else {
if ( !current_user_can('edit_post', $post_ID) )
die(__('You are not allowed to edit this post.'));
@@ -163,13 +163,13 @@ function edit_post() {
}
if ($_POST['post_author'] != $_POST['user_ID']) {
- if ( 'page' == $_POST['post_type'] ) {
+ if ( 'page' == $_POST['post_type'] ) {
if ( !current_user_can('edit_others_pages') )
die(__('You cannot edit pages as this user.'));
} else {
if ( !current_user_can('edit_others_posts') )
die(__('You cannot edit posts as this user.'));
-
+
}
}
@@ -185,7 +185,7 @@ function edit_post() {
if ( 'page' == $_POST['post_type'] ) {
if ('publish' == $_POST['post_status'] && !current_user_can('edit_published_pages'))
- $_POST['post_status'] = 'draft';
+ $_POST['post_status'] = 'draft';
} else {
if ('publish' == $_POST['post_status'] && !current_user_can('edit_published_posts'))
$_POST['post_status'] = 'draft';
@@ -217,7 +217,7 @@ function edit_post() {
foreach ($_POST['meta'] as $key => $value)
update_meta($key, $value['key'], $value['value']);
}
-
+
if ($_POST['deletemeta']) {
foreach ($_POST['deletemeta'] as $key => $value)
delete_meta($key);
@@ -464,13 +464,13 @@ function edit_user($user_id = 0) {
function get_link_to_edit($link_id) {
$link = get_link($link_id);
-
+
$link->link_url = wp_specialchars($link->link_url, 1);
$link->link_name = wp_specialchars($link->link_name, 1);
$link->link_description = wp_specialchars($link->link_description);
$link->link_notes = wp_specialchars($link->link_notes);
$link->link_rss = wp_specialchars($link->link_rss);
-
+
return $link;
}
@@ -479,17 +479,17 @@ function get_default_link_to_edit() {
$link->link_url = wp_specialchars($_GET['linkurl'], 1);
else
$link->link_url = '';
-
+
if ( isset($_GET['name']) )
$link->link_name = wp_specialchars($_GET['name'], 1);
else
$link->link_name = '';
-
+
return $link;
}
function add_link() {
- return edit_link();
+ return edit_link();
}
function edit_link($link_id = '') {
@@ -502,7 +502,7 @@ function edit_link($link_id = '') {
$_POST['link_image'] = wp_specialchars($_POST['link_image']);
$_POST['link_rss'] = wp_specialchars($_POST['link_rss']);
$auto_toggle = get_autotoggle($_POST['link_category']);
-
+
// if we are in an auto toggle category and this one is visible then we
// need to make the others invisible before we add this new one.
// FIXME Add category toggle func.
@@ -577,7 +577,7 @@ function get_nested_categories($default = 0, $parent = 0) {
$result[$cat]['cat_name'] = get_the_category_by_ID($cat);
}
}
-
+
usort($result, 'sort_cats');
return $result;
@@ -615,7 +615,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) {
if ( current_user_can('manage_categories') ) {
$edit = "<a href='categories.php?action=edit&amp;cat_ID=$category->cat_ID' class='edit'>".__('Edit')."</a></td>";
$default_cat_id = get_option('default_category');
-
+
if ($category->cat_ID != $default_cat_id)
$edit .= "<td><a href='categories.php?action=delete&amp;cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '".sprintf(__("You are about to delete the category &quot;%s&quot;. All of its posts will go to the default category.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."), wp_specialchars($category->cat_name, 1))."' );\" class='delete'>".__('Delete')."</a>";
else
@@ -699,7 +699,7 @@ function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $lev
function link_category_dropdown($fieldname, $selected = 0) {
global $wpdb;
-
+
$results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id");
echo "\n<select name='$fieldname' size='1'>\n";
foreach ($results as $row) {
@@ -1834,7 +1834,7 @@ function cancelUpload() {
<input type="button" value="<?php _e('Cancel'); ?>" onclick="cancelUpload()" />
</div>
</form>
-<?php
+<?php
}
function wp_import_handle_upload() {
View
@@ -53,41 +53,41 @@
if ( $page_hook ) {
if (! isset($_GET['noheader']))
require_once(ABSPATH . '/wp-admin/admin-header.php');
-
+
do_action($page_hook);
} else {
if ( validate_file($plugin_page) ) {
die(__('Invalid plugin page'));
}
-
+
if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page"))
die(sprintf(__('Cannot load %s.'), $plugin_page));
if (! isset($_GET['noheader']))
require_once(ABSPATH . '/wp-admin/admin-header.php');
-
+
include(ABSPATH . "wp-content/plugins/$plugin_page");
}
-
+
include(ABSPATH . 'wp-admin/admin-footer.php');
exit();
} else if (isset($_GET['import'])) {
-
+
$importer = $_GET['import'];
if ( validate_file($importer) ) {
die(__('Invalid importer.'));
}
-
+
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
die(__('Cannot load importer.'));
-
+
include(ABSPATH . "wp-admin/import/$importer.php");
$parent_file = 'import.php';
$title = __('Import');
-
+
if (! isset($_GET['noheader']))
require_once(ABSPATH . 'wp-admin/admin-header.php');
@@ -97,7 +97,7 @@
kses_init_filters(); // Always filter imported data with kses.
call_user_func($wp_importers[$importer][2]);
-
+
include(ABSPATH . 'wp-admin/admin-footer.php');
exit();
View
@@ -25,16 +25,16 @@
$popuptitle = wp_specialchars(stripslashes($popuptitle));
$text = wp_specialchars(stripslashes(urldecode($text)));
-
+
$popuptitle = funky_javascript_fix($popuptitle);
$text = funky_javascript_fix($text);
-
+
$post_title = wp_specialchars($_REQUEST['post_title']);
if (!empty($post_title))
$post->post_title = stripslashes($post_title);
else
$post->post_title = $popuptitle;
-
+
$content = wp_specialchars($_REQUEST['content']);
$popupurl = wp_specialchars($_REQUEST['popupurl']);
Oops, something went wrong.

0 comments on commit dd202ce

Please sign in to comment.