• Hi there,

    Came across this issue today. I have created a custom post type using the following code:

    register_post_type("gallery-image", array(
    	"label" => "Gallery Image",
    	"public" => true,
    	"hierarchical" => true,
    	"supports" => array("title", "thumbnail")
    ));

    Because the editor is not being display, we get a javascript error:

    Uncaught ReferenceError: QTags is not defined

    I did scratch my head at this one and was about to raise an issue with the WP Devs but then I deactivated this plugin and the issue did not appear.

    I did have a look at the code, found out what was going on and came up with the following solution/hack to be placed at line 1684 of hana-flv-player.php:

    global $post;
    $posttype = get_post_type($post->ID);
    if(post_type_supports($posttype, "editor"))
    {
    	    add_action('edit_form_advanced', array(&$this,'print_javascript'));
    		add_action('edit_page_form',array(&$this,'print_javascript'));
    	    //add_action('admin_footer','print_javascript');
    }

    Would be great to know if this helps and whether this fix would be put into a future version.

    Cheers,

    Tim

    https://www.ads-software.com/plugins/hana-flv-player/

  • The topic ‘Possible Bug’ is closed to new replies.