From dff2159b9a60ef198230c8ccf4cec127b5fc5a12 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 4 Aug 2005 09:40:17 +0000 Subject: Changes from Core WP. Added tinymce editor and other fixes git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@120 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/xmlrpc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wp-inst/xmlrpc.php') diff --git a/wp-inst/xmlrpc.php b/wp-inst/xmlrpc.php index 6326596..35af5ff 100644 --- a/wp-inst/xmlrpc.php +++ b/wp-inst/xmlrpc.php @@ -1243,6 +1243,9 @@ class wp_xmlrpc_server extends IXR_Server { } } + if ( empty($context) ) // URL pattern not found + return new IXR_Error(17, 'The source URI does not contain a link to the target URI, and so cannot be used as a source.'); + $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom); $context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]'; @@ -1308,4 +1311,4 @@ class wp_xmlrpc_server extends IXR_Server { $wp_xmlrpc_server = new wp_xmlrpc_server(); -?> +?> \ No newline at end of file -- cgit