Revision: 1391
Author: magike.net
Date: Tue Mar 16 08:23:26 2010
Log: 把段落处理回滚,暂时解决一部分问题
http://code.google.com/p/typecho/source/detail?r=1391

Modified:
  /trunk/var/Widget/Contents/Page/Edit.php
  /trunk/var/Widget/Contents/Post/Edit.php
  /trunk/var/Widget/XmlRpc.php

=======================================
--- /trunk/var/Widget/Contents/Page/Edit.php    Mon Mar 15 02:35:30 2010
+++ /trunk/var/Widget/Contents/Page/Edit.php    Tue Mar 16 08:23:26 2010
@@ -64,12 +64,6 @@

          $contents['title'] = $this->request->get('title', _t('未命名页 
面'));
          $contents['created'] = $this->getCreated();
-
-        $contents['text'] =  
$this->pluginHandle()->trigger($triggered)->textFilter($contents['text'],  
$this);
-        if (!$triggered) {
-            $contents['text'] =  
Typecho_Common::beautifyFormat(Typecho_Common::removeParagraph($contents['text']));
-        }
-
          $contents = $this->pluginHandle()->write($contents, $this);

          if ($this->request->is('do=publish')) {
=======================================
--- /trunk/var/Widget/Contents/Post/Edit.php    Mon Mar 15 02:35:30 2010
+++ /trunk/var/Widget/Contents/Post/Edit.php    Tue Mar 16 08:23:26 2010
@@ -553,12 +553,6 @@

          $contents['title'] = $this->request->get('title', _t('未命名文 
档'));
          $contents['created'] = $this->getCreated();
-
-        $contents['text'] =  
$this->pluginHandle()->trigger($triggered)->textFilter($contents['text'],  
$this);
-        if (!$triggered) {
-            $contents['text'] =  
Typecho_Common::beautifyFormat(Typecho_Common::removeParagraph($contents['text']));
-        }
-
          $contents = $this->pluginHandle()->write($contents, $this);

          if ($this->request->is('do=publish')) {
=======================================
--- /trunk/var/Widget/XmlRpc.php        Mon Mar 15 02:35:30 2010
+++ /trunk/var/Widget/XmlRpc.php        Tue Mar 16 08:23:26 2010
@@ -415,7 +415,13 @@
          }

          $input['text'] = !empty($content['mt_text_more']) ?  
$content['description']
-            . "\n<!--more-->\n" . $content['mt_text_more'] :  
$content['description'];
+            . "\n<!--more-->\n" . $content['mt_text_more'] :  
$content['description'];
+
+        $input['text'] =  
$this->pluginHandle()->trigger($triggered)->textFilter($input['text'],  
$this);
+        if (!$triggered) {
+            $input['text'] =  
Typecho_Common::beautifyFormat(Typecho_Common::removeParagraph($input['text']));
+        }
+
          $input['password'] = isset($content["wp_password"]) ?  
$content["wp_password"] : NULL;
          $input['order'] = isset($content["wp_page_order"]) ?  
$content["wp_page_order"] : NULL;

_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce

回复