[wp-trac] [WordPress Trac] #9677: Quick edit of pages strips page code content

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 29 07:59:59 GMT 2009


#9677: Quick edit of pages strips page code content
----------------------------+-----------------------------------------------
 Reporter:  apeatling       |       Owner:  anonymous        
     Type:  defect (bug)    |      Status:  new              
 Priority:  normal          |   Milestone:  Unassigned       
Component:  Administration  |     Version:                   
 Severity:  normal          |    Keywords:  pages, quick edit
----------------------------+-----------------------------------------------
 Using WordPress MU 2.7.1 (same codebase as WordPress 2.7.1 in this part)

 I'm creating the BuddyPress codex documentation, which includes code
 snippets. I've turned off the visual editor as it doesn't handle code
 snippets very well.

 Everything works well, and the code displays correctly when saved.

 However, if I use the "Quick Edit" option for that page (I changed the
 slug) then save, all the code snippet content on the page is stripped
 completely. I'm assuming this would probably be the same for a post.

 Here are the steps:

 1. Create a page with the visual editor turned off.
 2. Add some example code to that page, wrapped in the <?php ?> tags.
 3. Save the page, WordPress will convert the code so it uses HTML
 entities.
 4. View the page, it should display the code just fine on the page within
 the theme.
 5. Go to the edit pages screen and hit the "Quick Edit" link for the page.
 6. Change the slug and hit the "Update Page" button.
 7. View the page again, the code is now stripped.

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


More information about the wp-trac mailing list