Use blog name in atom service document. Fixes #5667 props tvachon.
git-svn-id: https://develop.svn.wordpress.org/trunk@7301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
79f4ab9a35
commit
4252c3d93a
@ -174,17 +174,18 @@ class AtomServer {
|
||||
$accepted_media_types = $accepted_media_types . "<accept>" . $med . "</accept>";
|
||||
}
|
||||
$atom_prefix="atom";
|
||||
$atom_blogname=get_bloginfo('name');
|
||||
$service_doc = <<<EOD
|
||||
<service xmlns="$this->ATOMPUB_NS" xmlns:$atom_prefix="$this->ATOM_NS">
|
||||
<workspace>
|
||||
<$atom_prefix:title>WordPress Workspace</$atom_prefix:title>
|
||||
<$atom_prefix:title>$atom_blogname Workspace</$atom_prefix:title>
|
||||
<collection href="$entries_url">
|
||||
<$atom_prefix:title>WordPress Posts</$atom_prefix:title>
|
||||
<$atom_prefix:title>$atom_blogname Posts</$atom_prefix:title>
|
||||
<accept>$this->ATOM_CONTENT_TYPE;type=entry</accept>
|
||||
<categories href="$categories_url" />
|
||||
</collection>
|
||||
<collection href="$media_url">
|
||||
<$atom_prefix:title>WordPress Media</$atom_prefix:title>
|
||||
<$atom_prefix:title>$atom_blogname Media</$atom_prefix:title>
|
||||
$accepted_media_types
|
||||
</collection>
|
||||
</workspace>
|
||||
|
Loading…
Reference in New Issue
Block a user