<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -49,7 +49,8 @@ function designate_stylesheet() {
     
     if ($custom &amp;&amp; strlen($custom) &gt; 0)
         $slug = preg_replace('/\.css$/', '', $custom);
-    elseif ($post-&gt;post_name &amp;&amp; DESIGNATE_USE_POST_SLUGS === true)
+    elseif ($post-&gt;post_name &amp;&amp; DESIGNATE_USE_POST_SLUGS === true &amp;&amp;
+            preg_match('/%postname%/', get_option('permalink_structure')))
         $slug = $post-&gt;post_name;
     else
         $slug = 'post-style-' . $post-&gt;ID;</diff>
      <filename>designate.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3fae73f12b130e05fafd15e53e01b863cb7012b1</id>
    </parent>
  </parents>
  <author>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </author>
  <url>http://github.com/ionfish/designate/commit/d3c109baf3997671210431550fe37664e00f71f1</url>
  <id>d3c109baf3997671210431550fe37664e00f71f1</id>
  <committed-date>2009-10-27T04:34:31-07:00</committed-date>
  <authored-date>2009-10-27T04:34:31-07:00</authored-date>
  <message>Only use post slugs if post names appear in URIs.</message>
  <tree>79eeca14d83179730550a85377618f18566558fb</tree>
  <committer>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </committer>
</commit>
