]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/moderation.php
WordPress 4.2.1-scripts
[autoinstalls/wordpress.git] / wp-admin / moderation.php
index 6750ac328c5117bafd32db6148c58d1b73e0041a..13a9b4a3cd2e6ea55f03644cd9b31292f93e1361 100644 (file)
@@ -1,4 +1,12 @@
 <?php
-require_once('../wp-config.php');
-wp_redirect('edit-comments.php?comment_status=moderated');
-?>
+/**
+ * Comment Moderation Administration Screen.
+ *
+ * Redirects to edit-comments.php?comment_status=moderated.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
+wp_redirect( admin_url('edit-comments.php?comment_status=moderated') );
+exit;