Skip to content

Don't enqueue an empty JS file #5

@mallardduck

Description

@mallardduck

Could you comment this out until there's something in the file to execute? As it stands now the file seems to be just a placeholder and has no executable code. As such there's no reason to enqueue this script since it's just adding another resource to sites that use it and isn't providing any functionality.

wp_enqueue_script($this->wp_hide_post, plugin_dir_url(__FILE__) . 'js/wp-hide-post-public.js', array('jquery'), $this->version, false);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions