[wp-trac] Re: [WordPress Trac] #8658: [PATCH] wp-includes/js/autosave.js: check if properties are defined before use

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 20 02:09:46 GMT 2008


#8658: [PATCH] wp-includes/js/autosave.js: check if properties are defined before
use
--------------------------+-------------------------------------------------
 Reporter:  projct        |        Owner:       
     Type:  defect (bug)  |       Status:  new  
 Priority:  normal        |    Milestone:  2.7.1
Component:  Autosave      |      Version:  2.7  
 Severity:  normal        |   Resolution:       
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Comment (by projct):

 $('#post_title').val() and $('#post_content').val() will return undefined
 if the item does not exist on the page.

 It's a minor fix that gets in the way when combining JS and CSS for #3372,
 which I am working on a patch for.

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


More information about the wp-trac mailing list