[wp-trac] Re: [WordPress Trac] #7686: WordPress Sandwiches MORE tag Improperly when Submitting via XML-RPC cCLient

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 7 03:39:41 GMT 2008


#7686: WordPress Sandwiches MORE tag Improperly when Submitting via XML-RPC
cCLient
----------------------------------------+-----------------------------------
 Reporter:  iacas                       |        Owner:  anonymous
     Type:  defect                      |       Status:  new      
 Priority:  high                        |    Milestone:  2.6.2    
Component:  XML-RPC                     |      Version:  2.6.1    
 Severity:  normal                      |   Resolution:           
 Keywords:  more tag, xml-rpc, newline  |  
----------------------------------------+-----------------------------------
Changes (by ecto):

 * cc: ecto (added)

Comment:

 redsweater, I think your original suggestion was to use "$post_content =
 trim($post_content) . "\n<!--more-->\n" . trim($post_more);", which looks
 good to me, but the current version has "$post_content =
 trim($post_content) . "<!--more-->" . trim($post_more);" which fails to
 work if body and extended aren't ending with a linebreak. That means the
 blogger has to manually append a linebreak. I doubt that's how it works in
 the web interface.

 I recommend to fix per your original suggestion. i.e. "$post_content =
 trim($post_content) . "\n<!--more-->\n" . trim($post_more);"

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7686#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list