[wp-trac] Re: [WordPress Trac] #6457: New Post Using Multiple Custom Field creates unpublished posts and drafts

WordPress Trac wp-trac at lists.automattic.com
Sun May 4 01:40:59 GMT 2008


#6457: New Post Using Multiple Custom Field creates unpublished posts and drafts
---------------------------------------------------+------------------------
 Reporter:  elusivelight                           |        Owner:  anonymous
     Type:  defect                                 |       Status:  new      
 Priority:  highest omg bbq                        |    Milestone:  2.5.2    
Component:  Administration                         |      Version:  2.5.1    
 Severity:  critical                               |   Resolution:           
 Keywords:  custom fields has-patch needs-testing  |  
---------------------------------------------------+------------------------
Changes (by guillep2k):

 * cc: guillep2k (added)
  * keywords:  custom fields => custom fields has-patch needs-testing

Comment:

 This seems to happen when the user has javascript disabled OR for some
 reason the scripts for AJAX have not initialized for the page yet. The
 second HAS happened to me several times with this page. I don't think it's
 a slow connection problem because when it happened to me it was with a
 Wordpress installation in my intranet. You can tell because a full POST is
 performed, instead of an AJAX method.

 This is easily reproductible if you disable Javascript and add metadata is
 your first action.

 I had to make a double patch for this:

 1) Disable the check at wp_insert_post() for content. Since metadata can
 be added without title/content/excerpt, this function should allow for it.
 OTHER CHECKS NEEDED, THOUGH!

 2) Consider the fact that we don't have a good referrer in
 redirect_post().

 (See attached patch). This solved the problem for me (at least testing
 with Firefox and JS disabled), but the effects should be evaluated by
 another developer more familiar with WP code.

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


More information about the wp-trac mailing list