Changeset 1818 for trunk/wp-admin/link-add.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-add.php
r1551 r1818 1 1 <?php 2 require_once(' ../wp-includes/wp-l10n.php');2 require_once('admin.php'); 3 3 4 4 $title = 'Add Link'; … … 23 23 } 24 24 25 function add_magic_quotes($array) { 26 foreach ($array as $k => $v) { 27 if (is_array($v)) { 28 $array[$k] = add_magic_quotes($v); 29 } else { 30 $array[$k] = addslashes($v); 31 } 32 } 33 return $array; 34 } 35 if (!get_magic_quotes_gpc()) { 36 $_GET = add_magic_quotes($_GET); 37 $_POST = add_magic_quotes($_POST); 38 $_COOKIE = add_magic_quotes($_COOKIE); 39 } 40 41 $wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image', 25 $wpvarstoreset = array('action', 'cat_id', 'linkurl', 'name', 'image', 42 26 'description', 'visible', 'target', 'category', 'link_id', 43 27 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
Note: See TracChangeset
for help on using the changeset viewer.