Changeset 1794 for trunk/wp-trackback.php
- Timestamp:
- 10/14/2004 07:26:41 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r1734 r1794 1 1 <?php 2 3 function add_magic_quotes($array) { 4 foreach ($array as $k => $v) { 5 if (is_array($v)) { 6 $array[$k] = add_magic_quotes($v); 7 } else { 8 $array[$k] = addslashes($v); 9 } 10 } 11 return $array; 12 } 13 14 if (!get_magic_quotes_gpc()) { 15 $_GET = add_magic_quotes($_GET); 16 $_POST = add_magic_quotes($_POST); 17 $_COOKIE = add_magic_quotes($_COOKIE); 18 } 2 19 3 20 if ( !$doing_trackback) { … … 5 22 require('wp-blog-header.php'); 6 23 } 7 8 include_once (ABSPATH . WPINC . '/functions-post.php');9 24 10 25 function trackback_response($error = 0, $error_message = '') {
Note: See TracChangeset
for help on using the changeset viewer.