Use plugin_path instead of plugin_url.

This commit is contained in:
Gerhard 2019-07-03 11:49:51 +02:00
parent 77e8e36f72
commit 7ff9788450
1 changed files with 2 additions and 2 deletions

View File

@ -799,12 +799,12 @@ final class WooCommerce {
*/
public function build_dependencies_satisfied() {
// Check if we have compiled CSS.
if ( ! file_exists( WC()->plugin_url() . '/assets/css/admin.css' ) ) {
if ( ! file_exists( WC()->plugin_path() . '/assets/css/admin.css' ) ) {
return false;
}
// Check if we have minified JS.
if ( ! file_exists( WC()->plugin_url() . '/assets/js/admin/woocommerce_admin.min.js' ) ) {
if ( ! file_exists( WC()->plugin_path() . '/assets/js/admin/woocommerce_admin.min.js' ) ) {
return false;
}