[wp-cvs] wordpress wp-settings.php, 1.58, 1.59 wp-trackback.php,
1.23, 1.24 xmlrpc.php, 1.28, 1.29
Matthew Mullenweg
saxmatt at users.sourceforge.net
Thu Oct 14 07:26:44 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11254
Modified Files:
wp-settings.php wp-trackback.php xmlrpc.php
Log Message:
Trackback and pingback cleanups.
Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/xmlrpc.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** xmlrpc.php 11 Oct 2004 13:22:22 -0000 1.28
--- xmlrpc.php 14 Oct 2004 07:26:41 -0000 1.29
***************
*** 6,10 ****
include('./wp-config.php');
include_once(ABSPATH . WPINC . '/class-IXR.php');
- include_once(ABSPATH . WPINC . '/functions-post.php');
// Turn off all warnings and errors.
--- 6,9 ----
Index: wp-settings.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-settings.php,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** wp-settings.php 11 Oct 2004 06:45:16 -0000 1.58
--- wp-settings.php 14 Oct 2004 07:26:41 -0000 1.59
***************
*** 50,53 ****
--- 50,54 ----
require (ABSPATH . WPINC . '/functions.php');
require (ABSPATH . WPINC . '/functions-formatting.php');
+ require (ABSPATH . WPINC . '/functions-post.php');
require (ABSPATH . WPINC . '/classes.php');
require (ABSPATH . WPINC . '/template-functions.php');
Index: wp-trackback.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-trackback.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** wp-trackback.php 4 Oct 2004 08:03:52 -0000 1.23
--- wp-trackback.php 14 Oct 2004 07:26:41 -0000 1.24
***************
*** 1,4 ****
--- 1,21 ----
<?php
+ function add_magic_quotes($array) {
+ foreach ($array as $k => $v) {
+ if (is_array($v)) {
+ $array[$k] = add_magic_quotes($v);
+ } else {
+ $array[$k] = addslashes($v);
+ }
+ }
+ return $array;
+ }
+
+ if (!get_magic_quotes_gpc()) {
+ $_GET = add_magic_quotes($_GET);
+ $_POST = add_magic_quotes($_POST);
+ $_COOKIE = add_magic_quotes($_COOKIE);
+ }
+
if ( !$doing_trackback) {
$doing_trackback = 1;
***************
*** 6,11 ****
}
- include_once (ABSPATH . WPINC . '/functions-post.php');
-
function trackback_response($error = 0, $error_message = '') {
header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
--- 23,26 ----
More information about the cvs
mailing list