Apparently, a lot of us have been using wp_editor incorrectly and didn’t even know it. As of the WordPress version 3.9, you will receive an error if you are still using it this way:
The actual method is to place your field id in the textarea_name
argument in the settings paramenter, like this:
It’s an easy fix, one that I’ve already seen a few plugins make since WordPress 3.9 was released. See the codex for more information on using wp_editor()
.
Update February 26, 2015: The code above originally showed the error using the Widget API get_field_id()
, I’ve updated this to show how it might be used in/correctly elsewhere in WordPress.
Leave a Reply