wp-front-end-editor
wp-front-end-editor copied to clipboard
TypeError: editor.create_form is not a function
Turning on the "Edit all post fields at once" option causes the editor to break.
Steps to reproduce:
- Open a new WP 3.5.1 install and add/activate the Front-end Editor plugin
- Enable SCRIPT_DEBUG in wp-config.php
- Go to wp-admin > Settings > Front-end Editor
- Check the "Edit all post fields at once." option
- Click the "Save Changes" button
- Try editing any post from the front end
- Expected: clicking "Edit" will enable the editor for all post field
- Actual: clicking "Edit" does not open the editor and the following error can be found in the web console
Error: "TypeError: editor.create_form is not a function @ http://localhost/3.5.1/wp-content/plugins/front-end-editor/build/editor.js?ver=2.3:854"
Code ref: http://plugins.trac.wordpress.org/browser/front-end-editor/tags/2.3/build/editor.js#L854
Tested with WP 3.5.1 and Front-end Editor 2.3 using the Twenty Twelve theme and Firefox 22 on Mac OS X 10.8.3.
Confirmed using rev 805dc4dc72b7595cd19e2015b9da3324e8fb9b98
In Chrome, the error looks like this:
Uncaught TypeError: Object #<thumbnail> has no method 'create_form'