Closed kasparsd closed 7 years ago
I hope we can find a more simple way of doing the same thing. This would need a lot of inline comments to understand what it actually does :)
"Replace" may be understood as find files based on URL-s
@kasparsd May I advance the solution for this? Please advise.
I'd favor a solution which moves local path determination to a filter. https://github.com/kasparsd/minit/blob/master/include/minit-assets.php#L103-L104
Would you merge it?
Then I would hook into that.
@szepeviktor How about filtering the output of get_asset_relative_path()
instead? It would have to return the part after ABSPATH
.
The base of the problem is that my wp-content is not below ABSPATH, they are sibling directories.
wp-cli.yml
$DOCROOT/─┬─index.php (modified)
├─wp-config.php
├─wp-login.php (trap)
├─xmlrpc.php (trap)
├─ABSPATH/─┬─index.php
│ ├─wp-load.php
│ ├─wp-login.php
│ ├─wp-admin/
│ └─wp-includes/
└─static/ (wp-content)
The purpose is to have a clean WordPress core directory.
@kasparsd Please comment on #95
@kasparsd Please close this one.
Fixed in #95
@markoheijnen wrote