diff --git a/package-lock.json b/package-lock.json index c4560fe..f4f23aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@wordpress/env": "^5.15.0", - "@wordpress/scripts": "^26.1.0" + "@wordpress/scripts": "26.1.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index da073c7..fa7e854 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "devDependencies": { "@wordpress/env": "^5.15.0", - "@wordpress/scripts": "^26.1.0" + "@wordpress/scripts": "26.1.0" }, "dependencies": { "@wordpress/i18n": "^4.30.0", diff --git a/plugin.php b/plugin.php index 1b4c438..c5c6362 100644 --- a/plugin.php +++ b/plugin.php @@ -272,9 +272,9 @@ function simpletoc_add_pagenumber($blocks, $headings) * @var array[] $blocks * @return array[] */ -function filter_headings_recursive(array $blocks): array +function filter_headings_recursive($blocks) { - $arr = []; + $arr = []; // allow developers to ignore specific blocks $ignored_blocks = apply_filters('simpletoc_excluded_blocks', []);