Changeset 1818 for trunk/wp-admin/options-head.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-head.php
r1810 r1818 1 1 <?php 2 3 $parent_file = 'options-general.php';4 5 function add_magic_quotes($array) {6 foreach ($array as $k => $v) {7 if (is_array($v)) {8 $array[$k] = add_magic_quotes($v);9 } else {10 $array[$k] = addslashes($v);11 }12 }13 return $array;14 }15 16 if (!get_magic_quotes_gpc()) {17 $_GET = add_magic_quotes($_GET);18 $_POST = add_magic_quotes($_POST);19 $_COOKIE = add_magic_quotes($_COOKIE);20 }21 2 22 3 $wpvarstoreset = array('action','standalone', 'option_group_id'); … … 35 16 } 36 17 } 37 38 $standalone = 0;39 include_once('admin-header.php');40 18 ?> 41 19 42 20 <br clear="all" /> 43 21 44 <?php if (isset($ updated)) : ?>22 <?php if (isset($_GET['updated'])) : ?> 45 23 <div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div> 46 24 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.