fixed nested function issue in launch_editor (wp post edit) command