build test
This commit is contained in:
@@ -210,7 +210,8 @@ class Site
|
||||
|
||||
$items = json_decode(file_get_contents($manifestFile), true);
|
||||
foreach ($items as $file => $version) {
|
||||
$extension = end(explode(".", $file));
|
||||
$parts = explode(".", $file);
|
||||
$extension = end($parts);
|
||||
$tag = $this->stringify($file);
|
||||
if ($extension === "js") {
|
||||
add_action('wp_enqueue_scripts', function () use ($file, $version, $tag) {
|
||||
@@ -313,8 +314,9 @@ class Site
|
||||
return;
|
||||
}
|
||||
|
||||
if (!function_exists("acf_add_options_page")) {
|
||||
if (!function_exists("acf_add_options_page") && isset($this->config["options-pages"])) {
|
||||
$this->adminError("You can't register options pages without the Pro version of Advanced Custom Fields.");
|
||||
return;
|
||||
}
|
||||
|
||||
$i = 100;
|
||||
|
||||
Reference in New Issue
Block a user