[wp-hackers] Black Magic of the_editor() call

Peter Westwood peter.westwood at ftwr.co.uk
Sun Jun 24 16:55:46 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leonid Mamchenkov wrote:
> Hi All.
> 
> If I comment out the call to the_editor() function in
> wp-admin/edit-form-advanced.php, then the post body text area
> disappears.  That is something I wanted and expected.
> 
> But something else happens - all other boxes on the page (categories,
> discussion, post password, trackbacks, custom fields, etc) expand.
> And now they also miss that +/- thingy which one uses to collapse
> them.
> 
> Is this a bug or something?  Why is this happenning?  What should I do
> bring the collap/expand functionality back?
> 
> I looked through the the_editor() function definition in
> wp-includes/general-template.php , but couldn't spot the reason for
> this behavior.
> 

This is caused by all javascript processing stopping when it reaches
line 6 in autosave.js:

Error: form.content has no properties
Source File: /wp-includes/js/autosave.js?ver=20070306
Line: 6

This means that none of the other javascript gets processed - so the dbx
boxes don't get there behaviour

westi
- --
Peter Westwood
http://blog.ftwr.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfqISVPRdzag0AcURAnwIAKC95PoB0Q+w/XWMRVj2MKq1JlVKRgCePah/
ENMSJtFhNt1hgBy5ZYpw+7A=
=DIeT
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list