From 41036eae4e96cff3150b65e7e01cac2c72f47350 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 31 Oct 2008 03:31:06 +0000 Subject: [PATCH] Edit comment page fix git-svn-id: https://develop.svn.wordpress.org/trunk@9425 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-comment.php | 48 +--------------------------------- wp-admin/js/comment.js | 4 +-- wp-includes/script-loader.php | 2 +- 3 files changed, 4 insertions(+), 50 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 0cd4b26f8b..a4ef89513e 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -24,52 +24,6 @@ $form_extra = "' />\n' /> -
-
- -

-

- - - -

- -
-comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . ""; ?> -
- -comment_date); -$time = mysql2date(get_option('time_format'), $comment->comment_date); -?> -
-
- -
- -

- - -

-
-comment_author_email ); $url = attribute_escape( $comment->comment_author_url ); @@ -116,7 +70,7 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date); -
+
diff --git a/wp-admin/js/comment.js b/wp-admin/js/comment.js index 936e19779b..3011920549 100644 --- a/wp-admin/js/comment.js +++ b/wp-admin/js/comment.js @@ -1,8 +1,8 @@ jQuery(document).ready( function($) { - postboxes.add_postbox_toggles('comment'); +// postboxes.add_postbox_toggles('comment'); // close postboxes that should be closed - jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); +// jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // show things that should be visible, hide what should be hidden jQuery('.hide-if-no-js').show(); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index c72c447374..652a1f18cc 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -201,7 +201,7 @@ function wp_default_scripts( &$scripts ) { 'edit' => __('Edit'), ) ); $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox', 'settings-box'), '20080925' ); - $scripts->add( 'comment', '/wp-admin/js/comment.js', array('postbox'), '20080219' ); + $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20080219' ); $scripts->localize( 'comment', 'commentL10n', array( 'cancel' => __('Cancel'), 'edit' => __('Edit'),