diff --git a/.gitignore b/.gitignore
index 4b0bb40..226ab24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
vendor/
.idea/
.vscode/
+wordpress/
diff --git a/LICENSE b/LICENSE
index 1777922..b3f6f8f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2023 Itineris Limited
+Copyright (c) 2024 Itineris Limited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 6bb6977..c8f2b19 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
-# PackageTemplateWPMUPluginBasic
+# WPDisableSearch
-[![Packagist Version](https://img.shields.io/packagist/v/itinerisltd/package-template-wp-muplugin-basic.svg?label=release&style=flat-square)](https://packagist.org/packages/itinerisltd/package-template-wp-muplugin-basic)
-[![PHP from Packagist](https://img.shields.io/packagist/php-v/itinerisltd/package-template-wp-muplugin-basic.svg?style=flat-square)](https://packagist.org/packages/itinerisltd/package-template-wp-muplugin-basic)
-[![Packagist Downloads](https://img.shields.io/packagist/dt/itinerisltd/package-template-wp-muplugin-basic.svg?label=packagist%20downloads&style=flat-square)](https://packagist.org/packages/itinerisltd/package-template-wp-muplugin-basic/stats)
-[![GitHub License](https://img.shields.io/github/license/itinerisltd/package-template-wp-muplugin-basic.svg?style=flat-square)](https://github.com/ItinerisLtd/package-template-wp-muplugin-basic/blob/master/LICENSE)
+[![Packagist Version](https://img.shields.io/packagist/v/itinerisltd/wp-disable-search.svg?label=release&style=flat-square)](https://packagist.org/packages/itinerisltd/wp-disable-search)
+[![PHP from Packagist](https://img.shields.io/packagist/php-v/itinerisltd/wp-disable-search.svg?style=flat-square)](https://packagist.org/packages/itinerisltd/wp-disable-search)
+[![Packagist Downloads](https://img.shields.io/packagist/dt/itinerisltd/wp-disable-search.svg?label=packagist%20downloads&style=flat-square)](https://packagist.org/packages/itinerisltd/wp-disable-search/stats)
+[![GitHub License](https://img.shields.io/github/license/itinerisltd/wp-disable-search.svg?style=flat-square)](https://github.com/ItinerisLtd/wp-disable-search/blob/master/LICENSE)
[![Hire Itineris](https://img.shields.io/badge/Hire-Itineris-ff69b4.svg?style=flat-square)](https://www.itineris.co.uk/contact/)
[![Twitter Follow @itineris_ltd](https://img.shields.io/twitter/follow/itineris_ltd?style=flat-square&color=1da1f2)](https://twitter.com/itineris_ltd)
@@ -25,15 +25,15 @@
## Installation
```bash
-composer require itinerisltd/package-template-wp-muplugin-basic
+composer require itinerisltd/wp-disable-search
```
## Credits
-[PackageTemplateWPMUPluginBasic](https://github.com/ItinerisLtd/package-template-wp-muplugin-basic) is a [Itineris Limited](https://www.itineris.co.uk/) project created by [Lee Hanbury-Pickett](https://github.com/codepuncher).
+[WPDisableSearch](https://github.com/ItinerisLtd/wp-disable-search) is a [Itineris Limited](https://www.itineris.co.uk/) project created by [Lee Hanbury-Pickett](https://github.com/codepuncher).
-Full list of contributors can be found [here](https://github.com/ItinerisLtd/package-template-wp-muplugin-basic/graphs/contributors).
+Full list of contributors can be found [here](https://github.com/ItinerisLtd/wp-disable-search/graphs/contributors).
## License
-[PackageTemplateWPMUPluginBasic](https://github.com/ItinerisLtd/package-template-wp-muplugin-basic) is released under the [MIT License](https://opensource.org/licenses/MIT).
+[WPDisableSearch](https://github.com/ItinerisLtd/wp-disable-search) is released under the [MIT License](https://opensource.org/licenses/MIT).
diff --git a/composer.json b/composer.json
index 5b38121..cea252b 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
- "name": "itinerisltd/package-template-wp-muplugin-basic",
- "description": "Basic WordPress plugin template for Composer",
+ "name": "itinerisltd/wp-disable-search",
+ "description": "Disable WP Search",
"license": "MIT",
"type": "wordpress-muplugin",
"authors": [
@@ -16,22 +16,24 @@
"role": "Developer"
}
],
- "homepage": "https://github.com/itinerisltd/package-template-wp-muplugin-basic/",
+ "homepage": "https://github.com/itinerisltd/wp-disable-search/",
"support": {
"email": "dev@itineris.co.uk",
- "issues": "https://github.com/ItinerisLtd/package-template-wp-muplugin-basic/issues",
- "source": "https://github.com/ItinerisLtd/package-template-wp-muplugin-basic"
+ "issues": "https://github.com/ItinerisLtd/wp-disable-search/issues",
+ "source": "https://github.com/ItinerisLtd/wp-disable-search"
},
"require": {
"php": "^8.1"
},
"require-dev": {
- "itinerisltd/itineris-wp-coding-standards": "^1.0"
+ "itinerisltd/itineris-wp-coding-standards": "^1.0",
+ "roots/wordpress": "^6.7"
},
"prefer-stable": true,
"config": {
"allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
+ "dealerdirect/phpcodesniffer-composer-installer": true,
+ "roots/wordpress-core-installer": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..9c760bf
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,594 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "ea9231aa49d00b25cafe9dd1c47f0110",
+ "packages": [],
+ "packages-dev": [
+ {
+ "name": "dealerdirect/phpcodesniffer-composer-installer",
+ "version": "v1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/composer-installer.git",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.0 || ^2.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
+ },
+ "require-dev": {
+ "composer/composer": "*",
+ "ext-json": "*",
+ "ext-zip": "*",
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "yoast/phpunit-polyfills": "^1.0"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
+ },
+ "autoload": {
+ "psr-4": {
+ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Franck Nijhof",
+ "email": "franck.nijhof@dealerdirect.com",
+ "homepage": "http://www.frenck.nl",
+ "role": "Developer / IT Manager"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
+ "homepage": "http://www.dealerdirect.com",
+ "keywords": [
+ "PHPCodeSniffer",
+ "PHP_CodeSniffer",
+ "code quality",
+ "codesniffer",
+ "composer",
+ "installer",
+ "phpcbf",
+ "phpcs",
+ "plugin",
+ "qa",
+ "quality",
+ "standard",
+ "standards",
+ "style guide",
+ "stylecheck",
+ "tests"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
+ "source": "https://github.com/PHPCSStandards/composer-installer"
+ },
+ "time": "2023-01-05T11:28:13+00:00"
+ },
+ {
+ "name": "itinerisltd/itineris-wp-coding-standards",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/ItinerisLtd/itineris-wp-coding-standards.git",
+ "reference": "dff4d7d34ca2f73e306b8c07991525518639566b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/ItinerisLtd/itineris-wp-coding-standards/zipball/dff4d7d34ca2f73e306b8c07991525518639566b",
+ "reference": "dff4d7d34ca2f73e306b8c07991525518639566b",
+ "shasum": ""
+ },
+ "require": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
+ "php": "^8.1",
+ "slevomat/coding-standard": "^8.8",
+ "wp-coding-standards/wpcs": "^2.3"
+ },
+ "require-dev": {
+ "roave/security-advisories": "dev-master"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.3.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Itineris Limited",
+ "email": "dev@itineris.co.uk",
+ "homepage": "https://itineris.co.uk/",
+ "role": "Company"
+ },
+ {
+ "name": "Tang Rufus",
+ "email": "tangrufus@gmail.com",
+ "homepage": "https://typist.tech/",
+ "role": "Developer"
+ },
+ {
+ "name": "Lee Hanbury-Pickett",
+ "email": "lee.hanbury@gmail.com",
+ "homepage": "https://github.com/codepuncher",
+ "role": "Developer"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules for Itineris WordPress projects",
+ "homepage": "https://itinerisltd.github.io/itineris-wp-coding-standards/",
+ "keywords": [
+ "itineris",
+ "phpcs",
+ "standards",
+ "wordpress"
+ ],
+ "support": {
+ "email": "dev@itineris.co.uk",
+ "issues": "https://github.com/ItinerisLtd/itineris-wp-coding-standards/issues",
+ "source": "https://github.com/ItinerisLtd/itineris-wp-coding-standards"
+ },
+ "time": "2023-04-17T13:17:20+00:00"
+ },
+ {
+ "name": "phpstan/phpdoc-parser",
+ "version": "1.33.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpdoc-parser.git",
+ "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140",
+ "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "doctrine/annotations": "^2.0",
+ "nikic/php-parser": "^4.15",
+ "php-parallel-lint/php-parallel-lint": "^1.2",
+ "phpstan/extension-installer": "^1.0",
+ "phpstan/phpstan": "^1.5",
+ "phpstan/phpstan-phpunit": "^1.1",
+ "phpstan/phpstan-strict-rules": "^1.0",
+ "phpunit/phpunit": "^9.5",
+ "symfony/process": "^5.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "PHPStan\\PhpDocParser\\": [
+ "src/"
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPDoc parser with support for nullable, intersection and generic types",
+ "support": {
+ "issues": "https://github.com/phpstan/phpdoc-parser/issues",
+ "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0"
+ },
+ "time": "2024-10-13T11:25:22+00:00"
+ },
+ {
+ "name": "roots/wordpress",
+ "version": "6.7.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/roots/wordpress.git",
+ "reference": "9451af491af7124c12186398c56ab87a6e145123"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/roots/wordpress/zipball/9451af491af7124c12186398c56ab87a6e145123",
+ "reference": "9451af491af7124c12186398c56ab87a6e145123",
+ "shasum": ""
+ },
+ "require": {
+ "roots/wordpress-core-installer": "^1.0.0",
+ "roots/wordpress-no-content": "self.version"
+ },
+ "type": "metapackage",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT",
+ "GPL-2.0-or-later"
+ ],
+ "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.",
+ "homepage": "https://wordpress.org/",
+ "keywords": [
+ "blog",
+ "cms",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/roots/wordpress/issues",
+ "source": "https://github.com/roots/wordpress/tree/6.7.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/roots",
+ "type": "github"
+ }
+ ],
+ "time": "2024-11-13T09:56:09+00:00"
+ },
+ {
+ "name": "roots/wordpress-core-installer",
+ "version": "1.100.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/roots/wordpress-core-installer.git",
+ "reference": "73f8488e5178c5d54234b919f823a9095e2b1847"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/roots/wordpress-core-installer/zipball/73f8488e5178c5d54234b919f823a9095e2b1847",
+ "reference": "73f8488e5178c5d54234b919f823a9095e2b1847",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.0 || ^2.0",
+ "php": ">=5.6.0"
+ },
+ "conflict": {
+ "composer/installers": "<1.0.6"
+ },
+ "replace": {
+ "johnpbloch/wordpress-core-installer": "*"
+ },
+ "require-dev": {
+ "composer/composer": "^1.0 || ^2.0",
+ "phpunit/phpunit": ">=5.7.27"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "Roots\\Composer\\WordPressCorePlugin"
+ },
+ "autoload": {
+ "psr-4": {
+ "Roots\\Composer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "GPL-2.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "John P. Bloch",
+ "email": "me@johnpbloch.com"
+ },
+ {
+ "name": "Roots",
+ "email": "team@roots.io"
+ }
+ ],
+ "description": "A custom installer to handle deploying WordPress with composer",
+ "keywords": [
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/roots/wordpress-core-installer/issues",
+ "source": "https://github.com/roots/wordpress-core-installer/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/roots",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/rootsdev",
+ "type": "patreon"
+ }
+ ],
+ "time": "2020-08-20T00:27:30+00:00"
+ },
+ {
+ "name": "roots/wordpress-no-content",
+ "version": "6.7.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/WordPress/WordPress.git",
+ "reference": "6.7.1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://downloads.wordpress.org/release/wordpress-6.7.1-no-content.zip",
+ "shasum": "321a5b819369e772ce606fbc12b1e264fb73da5b"
+ },
+ "require": {
+ "php": ">= 7.2.24"
+ },
+ "provide": {
+ "wordpress/core-implementation": "6.7.1"
+ },
+ "suggest": {
+ "ext-curl": "Performs remote request operations.",
+ "ext-dom": "Used to validate Text Widget content and to automatically configuring IIS7+.",
+ "ext-exif": "Works with metadata stored in images.",
+ "ext-fileinfo": "Used to detect mimetype of file uploads.",
+ "ext-hash": "Used for hashing, including passwords and update packages.",
+ "ext-imagick": "Provides better image quality for media uploads.",
+ "ext-json": "Used for communications with other servers.",
+ "ext-libsodium": "Validates Signatures and provides securely random bytes.",
+ "ext-mbstring": "Used to properly handle UTF8 text.",
+ "ext-mysqli": "Connects to MySQL for database interactions.",
+ "ext-openssl": "Permits SSL-based connections to other hosts.",
+ "ext-pcre": "Increases performance of pattern matching in code searches.",
+ "ext-xml": "Used for XML parsing, such as from a third-party site.",
+ "ext-zip": "Used for decompressing Plugins, Themes, and WordPress update packages."
+ },
+ "type": "wordpress-core",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "GPL-2.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "WordPress Community",
+ "homepage": "https://wordpress.org/about/"
+ }
+ ],
+ "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.",
+ "homepage": "https://wordpress.org/",
+ "keywords": [
+ "blog",
+ "cms",
+ "wordpress"
+ ],
+ "support": {
+ "docs": "https://developer.wordpress.org/",
+ "forum": "https://wordpress.org/support/",
+ "irc": "irc://irc.freenode.net/wordpress",
+ "issues": "https://core.trac.wordpress.org/",
+ "rss": "https://wordpress.org/news/feed/",
+ "source": "https://core.trac.wordpress.org/browser",
+ "wiki": "https://codex.wordpress.org/"
+ },
+ "funding": [
+ {
+ "url": "https://wordpressfoundation.org/donate/",
+ "type": "other"
+ }
+ ],
+ "time": "2024-11-21T14:15:19+00:00"
+ },
+ {
+ "name": "slevomat/coding-standard",
+ "version": "8.15.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/slevomat/coding-standard.git",
+ "reference": "7d1d957421618a3803b593ec31ace470177d7817"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/7d1d957421618a3803b593ec31ace470177d7817",
+ "reference": "7d1d957421618a3803b593ec31ace470177d7817",
+ "shasum": ""
+ },
+ "require": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
+ "php": "^7.2 || ^8.0",
+ "phpstan/phpdoc-parser": "^1.23.1",
+ "squizlabs/php_codesniffer": "^3.9.0"
+ },
+ "require-dev": {
+ "phing/phing": "2.17.4",
+ "php-parallel-lint/php-parallel-lint": "1.3.2",
+ "phpstan/phpstan": "1.10.60",
+ "phpstan/phpstan-deprecation-rules": "1.1.4",
+ "phpstan/phpstan-phpunit": "1.3.16",
+ "phpstan/phpstan-strict-rules": "1.5.2",
+ "phpunit/phpunit": "8.5.21|9.6.8|10.5.11"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "8.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "SlevomatCodingStandard\\": "SlevomatCodingStandard/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.",
+ "keywords": [
+ "dev",
+ "phpcs"
+ ],
+ "support": {
+ "issues": "https://github.com/slevomat/coding-standard/issues",
+ "source": "https://github.com/slevomat/coding-standard/tree/8.15.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/kukulich",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/slevomat/coding-standard",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2024-03-09T15:20:58+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.11.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
+ "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
+ "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
+ },
+ "bin": [
+ "bin/phpcbf",
+ "bin/phpcs"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Greg Sherwood",
+ "role": "Former lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "Current lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
+ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-11-16T12:02:36+00:00"
+ },
+ {
+ "name": "wp-coding-standards/wpcs",
+ "version": "2.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62",
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^3.3.1"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
+ },
+ "time": "2020-05-13T23:57:56+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": true,
+ "prefer-lowest": false,
+ "platform": {
+ "php": "^8.1"
+ },
+ "platform-dev": [],
+ "plugin-api-version": "2.6.0"
+}
diff --git a/package-template-wp-muplugin-basic.php b/package-template-wp-muplugin-basic.php
deleted file mode 100644
index adcc5d8..0000000
--- a/package-template-wp-muplugin-basic.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
- package-template-wp-muplugin-basic.php
+ wp-disable-search.php
@@ -20,7 +20,7 @@
-
+
diff --git a/wp-disable-search.php b/wp-disable-search.php
new file mode 100644
index 0000000..31d4a60
--- /dev/null
+++ b/wp-disable-search.php
@@ -0,0 +1,43 @@
+is_search = false;
+ $query->query_vars['s'] = false;
+ $query->query['s'] = false;
+
+ if ($error) {
+ $query->is_404 = true;
+ }
+}, 10, 2);
+
+add_filter('get_search_form', '__return_empty_string');
+
+add_action('widgets_init', function (): void {
+ unregister_widget('WP_Widget_Search');
+});
+
+add_filter('disable_wpseo_json_ld_search', '__return_true');