<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,15 +29,17 @@
 
             $trigger = Trigger::current();
 
+            $trigger-&gt;filter($this, &quot;page&quot;);
+
             if ($this-&gt;filtered) {
                 $this-&gt;title_unfiltered = $this-&gt;title;
                 $this-&gt;body_unfiltered = $this-&gt;body;
 
                 $trigger-&gt;filter($this-&gt;title, array(&quot;markup_title&quot;, &quot;markup_page_title&quot;), $this);
                 $trigger-&gt;filter($this-&gt;body, array(&quot;markup_text&quot;, &quot;markup_page_text&quot;), $this);
-            }
 
-            $trigger-&gt;filter($this, &quot;page&quot;);
+                $trigger-&gt;filter($this, &quot;filter_page&quot;);
+            }
         }
 
         /**</diff>
      <filename>includes/model/Page.php</filename>
    </modified>
    <modified>
      <diff>@@ -92,7 +92,8 @@
 
             Trigger::current()-&gt;filter($this, &quot;post&quot;);
 
-            $this-&gt;filter();
+            if ($this-&gt;filtered)
+                $this-&gt;filter();
         }
 
         /**
@@ -627,9 +628,6 @@
          * Filters the post attributes through filter_post and any Feather filters.
          */
         private function filter() {
-            if (!$this-&gt;filtered)
-                return;
-
             $trigger = Trigger::current();
             $class = camelize($this-&gt;feather);
 </diff>
      <filename>includes/model/Post.php</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,8 @@
 
             $trigger = Trigger::current();
 
+            $trigger-&gt;filter($this, &quot;comment&quot;);
+
             if ($this-&gt;filtered) {
                 if (($this-&gt;status != &quot;pingback&quot; and !$this-&gt;status != &quot;trackback&quot;) and !$group-&gt;can(&quot;code_in_comments&quot;))
                     $this-&gt;body = strip_tags($this-&gt;body, &quot;&lt;&quot;.join(&quot;&gt;&lt;&quot;, Config::current()-&gt;allowed_comment_html).&quot;&gt;&quot;);
@@ -38,10 +40,9 @@
                 $this-&gt;body_unfiltered = $this-&gt;body;
 
                 $trigger-&gt;filter($this-&gt;body, array(&quot;markup_text&quot;, &quot;markup_comment_text&quot;));
+
                 $trigger-&gt;filter($this, &quot;filter_comment&quot;);
             }
-
-            $trigger-&gt;filter($this, &quot;comment&quot;);
         }
 
         /**</diff>
      <filename>modules/comments/model.Comment.php</filename>
    </modified>
    <modified>
      <diff>@@ -218,7 +218,7 @@
             foreach($sql-&gt;select(&quot;post_attributes&quot;,
                                  &quot;*&quot;,
                                  array(&quot;name&quot; =&gt; &quot;tags&quot;,
-                                       &quot;value like&quot; =&gt; &quot;%: &quot;.$_GET['name'].&quot;\n%&quot;))-&gt;fetchAll() as $tag) { # TODO: Is this the correct search method?
+                                       &quot;value like&quot; =&gt; &quot;%: \&quot;&quot;.$_GET['name'].&quot;\&quot;\n%&quot;))-&gt;fetchAll() as $tag) {
                 $post_tags = YAML::load($tag[&quot;value&quot;]);
 
                 $tags = array_merge($tags, $post_tags);
@@ -268,7 +268,7 @@
             foreach($sql-&gt;select(&quot;post_attributes&quot;,
                                  &quot;*&quot;,
                                  array(&quot;name&quot; =&gt; &quot;tags&quot;,
-                                       &quot;value like&quot; =&gt; &quot;%\n&quot;.$_POST['original'].&quot;: %&quot;))-&gt;fetchAll() as $tag) { # TODO: Is this the correct search method?
+                                       &quot;value like&quot; =&gt; &quot;%\n&quot;.$_POST['original'].&quot;: \&quot;%&quot;))-&gt;fetchAll() as $tag) {
                 $tags = YAML::load($tag[&quot;value&quot;]);
                 unset($tags[$_POST['original']]);
 
@@ -289,7 +289,7 @@
             foreach($sql-&gt;select(&quot;post_attributes&quot;,
                                  &quot;*&quot;,
                                  array(&quot;name&quot; =&gt; &quot;tags&quot;,
-                                       &quot;value like&quot; =&gt; &quot;%: &quot;.$_GET['clean'].&quot;\n%&quot;))-&gt;fetchAll() as $tag)  { # TODO: Is this the correct search method?
+                                       &quot;value like&quot; =&gt; &quot;%: \&quot;&quot;.$_GET['clean'].&quot;\&quot;\n%&quot;))-&gt;fetchAll() as $tag)  {
                 $tags = YAML::load($tag[&quot;value&quot;]);
                 unset($tags[$_GET['name']]);
 
@@ -347,7 +347,7 @@
 
             $likes = array();
             foreach ($tags as $name)
-                $likes[] = &quot;%: &quot;.$name.&quot;\n%&quot;;
+                $likes[] = &quot;%: \&quot;&quot;.$name.&quot;\&quot;\n%&quot;;
 
             $attributes = $sql-&gt;select(&quot;post_attributes&quot;,
                                        array(&quot;value&quot;, &quot;post_id&quot;),</diff>
      <filename>modules/tags/tags.php</filename>
    </modified>
    <modified>
      <diff>@@ -80,6 +80,9 @@
                 $tags[$attr[&quot;post_id&quot;]][&quot;unclean&quot;] = $attr[&quot;value&quot;];
             else
                 $tags[$attr[&quot;post_id&quot;]][&quot;clean&quot;] = $attr[&quot;value&quot;];
+
+        if (empty($tags))
+            return;
         
         foreach ($tags as $post_id =&gt; $tags) {
             $yaml = YAML::dump(parseTags($tags[&quot;unclean&quot;], $tags[&quot;clean&quot;]));
@@ -102,4 +105,4 @@
 
     update_tags_structure();
     move_to_post_attributes();
-    move_to_yaml();
\ No newline at end of file
+    move_to_yaml();</diff>
      <filename>modules/tags/upgrades.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5f37681d40109641a59b6f845dbac7218342b649</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/372e77c4f2ba61ae9a718d29e525fc76d2952a14</url>
  <id>372e77c4f2ba61ae9a718d29e525fc76d2952a14</id>
  <committed-date>2008-11-13T13:03:56-08:00</committed-date>
  <authored-date>2008-11-13T13:03:56-08:00</authored-date>
  <message>* Model filter syncing.
* Updated the Tagginator module to conform with the new YAML quoting method.</message>
  <tree>2f5171598ea1b28b5962838f1139adb8fe7ad020</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
