Skip to content

Commit cba9074

Browse files
committed
add published method to indicate whether to load default assets or not
1 parent 384ec1f commit cba9074

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Assets.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,17 @@ public function expand($uri){
2424

2525
return get_stylesheet_directory_uri() . '/' . $uri;
2626
}
27+
28+
29+
private $published = false;
30+
31+
// for detecting whether to load default assets or not
32+
public function published($set=null){
33+
if($set === null)
34+
return $this->published;
35+
36+
$this->published = !!$set;
37+
38+
return $this;
39+
}
2740
}

0 commit comments

Comments
 (0)