Skip to content

Only load the WordProof admin CSS & JS on WordProof admin pages #24

@jdevalk

Description

@jdevalk

Describe the bug
I'm seeing the WordProof admin CSS & JS on non WordProof pages:

<link rel='stylesheet' id='wordproof.admin.css-css'  href='https://joost.blog/wp-content/plugins/wordproof-timestamp/assets/css/admin.css?ver=1603938797' media='all' />

To Reproduce
Steps to reproduce the behavior:

  1. Go to any other page in the admin
  2. View source
  3. See the styles and scripts are loaded

Expected behavior
Not loading those :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions