WordPress.org

Make WordPress Core

Ticket #5667: wp-app.php.01142007.patch

File wp-app.php.01142007.patch, 1.1 KB (added by tvachon, 10 years ago)

Patch to use blog title instead of "WordPress" in service document.

  • wp-app.php

     
    170170                  $accepted_media_types = $accepted_media_types . "<accept>" . $med . "</accept>";
    171171                }
    172172                $atom_prefix="atom";
     173                $atom_blogname=get_bloginfo('name');
    173174                $service_doc = <<<EOD
    174175<service xmlns="$this->ATOMPUB_NS" xmlns:$atom_prefix="$this->ATOM_NS">
    175176  <workspace>
    176     <$atom_prefix:title>WordPress Workspace</$atom_prefix:title>
     177    <$atom_prefix:title>$atom_blogname Workspace</$atom_prefix:title>
    177178    <collection href="$entries_url">
    178       <$atom_prefix:title>WordPress Posts</$atom_prefix:title>
     179      <$atom_prefix:title>$atom_blogname Posts</$atom_prefix:title>
    179180      <accept>$this->ATOM_CONTENT_TYPE;type=entry</accept>
    180181      <categories href="$categories_url" />
    181182    </collection>
    182183    <collection href="$media_url">
    183       <$atom_prefix:title>WordPress Media</$atom_prefix:title>
     184      <$atom_prefix:title>$atom_blogname Media</$atom_prefix:title>
    184185      $accepted_media_types
    185186    </collection>
    186187  </workspace>