Giter Site home page Giter Site logo

find-unused-themes's People

Contributors

danielbachhuber avatar iandunn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

find-unused-themes's Issues

False positive matches

I get a lot of false-positives when running this. For example:

> wp find-unused-themes
Checking https://wordcamp.dev/ for unused themes...
Checking https://central.wordcamp.dev/ for unused themes...
Checking https://plan.wordcamp.dev/ for unused themes...
// [etc]
+---------------+---------+
| name          | version |
+---------------+---------+
// more
| plan          | 0.1     |
// more
+---------------+---------+
> wp theme list --url=https://plan.wordcamp.dev
+-----------------------+----------+--------+---------+---------+
| name                  | status   | update | version | enabled |
+-----------------------+----------+--------+---------+---------+
// more inactive
| plan                  | active   | none   | 0.1     | site    |
// more inactive
| twentytwelve          | parent   | none   | 2.2     | network |
// more inactive
+-----------------------+----------+--------+---------+---------+

I added some debugging output, and it looks like the result of WP_CLI::launch_self( 'theme list' [...] ) is incorrect. It reports that the plan theme is inactive on plan.wordcamp.dev. So, it seems like all the logic inside this command is correct, but perhaps there's something wrong with the way theme list is being called?

Maybe the url parameter in the launch_self command isn't being used, because theme list is called with launch_self (vs something like run_command), and it's reusing the initial --url parameter from the wp find-unused-themes call (which, in this case, defaults to central.wordcamp.dev via wp-cli.yml)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.