Changeset 1818 for trunk/wp-admin/moderation.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/moderation.php
r1744 r1818 1 1 <?php 2 require_once(' ../wp-includes/wp-l10n.php');2 require_once('admin.php'); 3 3 4 4 $title = __('Moderate comments'); 5 5 $parent_file = 'edit.php'; 6 7 function add_magic_quotes($array) {8 foreach ($array as $k => $v) {9 if (is_array($v)) {10 $array[$k] = add_magic_quotes($v);11 } else {12 $array[$k] = addslashes($v);13 }14 }15 return $array;16 }17 18 if (!get_magic_quotes_gpc()) {19 $_GET = add_magic_quotes($_GET);20 $_POST = add_magic_quotes($_POST);21 $_COOKIE = add_magic_quotes($_COOKIE);22 }23 6 24 7 $wpvarstoreset = array('action','item_ignored','item_deleted','item_approved'); … … 48 31 49 32 case 'update': 50 51 $standalone = 1;52 require_once('admin-header.php');53 33 54 34 if ($user_level < 3) {
Note: See TracChangeset
for help on using the changeset viewer.