From 8b6ba65861502c2076b5ff8ca73dee0ccd65231d Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 18 Mar 2008 23:24:04 +0000 Subject: [PATCH] moderation.php is no more. All hail edit-comments.php?comment_status=moderated git-svn-id: https://develop.svn.wordpress.org/trunk@7391 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-comment.php | 2 +- wp-admin/includes/comment.php | 2 +- wp-admin/includes/dashboard.php | 2 +- wp-admin/options-discussion.php | 2 +- wp-includes/pluggable.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 95c38417db..15b8768027 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -55,7 +55,7 @@ echo " -
  • +
  • diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index 59bd9b6532..5a2dd65737 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -88,7 +88,7 @@ function floated_admin_avatar( $name ) { return "$avatar $name"; } -if ( is_admin() && ('edit-comments.php' == $pagenow || 'moderation.php' == $pagenow || 'edit.php' == $pagenow) ) { +if ( is_admin() && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) { if ( get_option('show_avatars') ) add_filter( 'comment_author', 'floated_admin_avatar' ); } diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index df7bd27b59..940046ca6a 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -24,7 +24,7 @@ function wp_dashboard_setup() { // Recent Comments Widget if ( current_user_can( 'moderate_comments' ) && $mod_comments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'") ) { $notice = sprintf( __ngettext( '%d comment awaiting moderation', '%d comments awaiting moderation', $mod_comments ), $mod_comments ); - $notice = "$notice"; + $notice = "$notice"; } else { $notice = ''; } diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 03dd6109cc..9b8ba158d6 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -59,7 +59,7 @@ include('admin-header.php');

    ' ) ?>

    -

    moderation queue. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?>

    +

    moderation queue. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?>

    diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index db7bf1ab83..a7dcc941f6 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -895,7 +895,7 @@ function wp_notify_moderator($comment_id) { $strCommentsPending = sprintf( __ngettext('%s comment', '%s comments', $comments_waiting), $comments_waiting ); $notify_message .= sprintf( __('Currently %s are waiting for approval. Please visit the moderation panel:'), $strCommentsPending ) . "\r\n"; - $notify_message .= get_option('siteurl') . "/wp-admin/moderation.php\r\n"; + $notify_message .= get_option('siteurl') . "/wp-admin/edit-comments.php?comment_status=moderated\r\n"; $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title ); $admin_email = get_option('admin_email');