mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Cleaning up blogfilename.
git-svn-id: https://develop.svn.wordpress.org/trunk@1997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -149,7 +149,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
$struct = array(
|
||||
'isAdmin' => $is_admin,
|
||||
'url' => get_settings('home') .'/'.get_settings('blogfilename'),
|
||||
'url' => get_settings('home') . '/',
|
||||
'blogid' => '1',
|
||||
'blogName' => get_settings('blogname')
|
||||
);
|
||||
@@ -281,7 +281,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
}
|
||||
|
||||
/* warning: here we make the assumption that the weblog's URI is on the same server */
|
||||
$filename = get_settings('home').'/'.get_settings('blogfilename');
|
||||
$filename = get_settings('home') . '/';
|
||||
$filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
|
||||
|
||||
$f = fopen($filename, 'r');
|
||||
@@ -315,7 +315,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
}
|
||||
|
||||
/* warning: here we make the assumption that the weblog's URI is on the same server */
|
||||
$filename = get_settings('home').'/'.get_settings('blogfilename');
|
||||
$filename = get_settings('home') . '/';
|
||||
$filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
|
||||
|
||||
if ($f = fopen($filename, 'w+')) {
|
||||
|
||||
Reference in New Issue
Block a user