[wp-trac] [WordPress Trac] #11504: PHP notices when publishing with QuickPress

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 26 23:41:45 UTC 2010

#11504: PHP notices when publishing with QuickPress
 Reporter:  caesarsgrunt      |       Owner:  westi                  
     Type:  defect (bug)      |      Status:  accepted               
 Priority:  normal            |   Milestone:  3.0                    
Component:  Warnings/Notices  |     Version:  2.9                    
 Severity:  normal            |    Keywords:  has-patch needs-testing

Comment(by nacin):

 Replying to [comment:16 Denis-de-Bernardy]:
 > isn't it possible for $post_data[ID] to be set with a value of zero on
 drafts? I'd suggest !empty() instead of isset() for the checks when
 setting the post_id variable.

 Not sure. The code was already checking for isset(). Logic seems fine
 though for $post_id to be 0, I think. It's just using that to get the
 post's previous status.

Ticket URL: <http://core.trac.wordpress.org/ticket/11504#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list