runcommand / find-unused-themes Goto Github PK
View Code? Open in Web Editor NEWFind unused themes on a multisite network
Home Page: https://runcommand.io/wp/find-unused-themes/
Find unused themes on a multisite network
Home Page: https://runcommand.io/wp/find-unused-themes/
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
)?
This is a very useful package, but it takes 20+ minutes on a network w/ 1300 sites. An approach similar to wp plugin active-on-sites
would probably be significantly faster (~65 seconds).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.