[wp-trac] Re: [WordPress Trac] #2434: Linked Image + Apostrophe In Post = Database Error

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 13 21:24:35 GMT 2006


#2434: Linked Image + Apostrophe In Post = Database Error
----------------------------+-----------------------------------------------
       Id:  2434            |      Status:  new                     
Component:  Administration  |    Modified:  Mon Feb 13 21:24:35 2006
 Severity:  major           |   Milestone:                          
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  Dave-Millercom          
----------------------------+-----------------------------------------------
Comment (by Dave-Millercom):

 I finally figured out the problem was:

 In admin-function.php > fix_attachment_links(), when wp_update_post($post)
 was called, the post contents had no slashes added, unlike in edit_post()
 (which calls wp_update_post($_POST)).

 I added a patch for this. I hope it's in the right format - I've never
 made one before.

 Dave

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2434>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list