WIP
This commit is contained in:
@@ -13,7 +13,7 @@ return [
|
||||
*
|
||||
* how many words should the wordpress excerpt be
|
||||
*/
|
||||
"excerpt-length" => 50,
|
||||
"excerpt-length" => 60,
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -547,7 +547,7 @@ class Site
|
||||
|
||||
// change excerpt langth
|
||||
if (array_key_exists("excerpt-length", $this->config)) {
|
||||
add_filter("excerpt-length", fn () => $this->config["excerpt-length"], 999);
|
||||
add_filter("excerpt-length", fn () => (int) $this->config["excerpt-length"], 999);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user