diff --git a/.gitignore b/.gitignore index 59d13b5a..1fb97daa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ # I rename things to .old when I'm messing around locally. *.old +# Hi, Query Monitor. +db.php + # Composer installs things. vendor/ @@ -16,3 +19,5 @@ themes/ # Uploads are... uploads. uploads/ + +mu-plugins/local/ diff --git a/composer.json b/composer.json index 7f312990..e40494ca 100644 --- a/composer.json +++ b/composer.json @@ -3,9 +3,9 @@ "type": "project", "minimum-stability": "stable", "require-dev": { - "wp-coding-standards/wpcs": "^2.0", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "phpcompatibility/php-compatibility": "^9.3", + "wp-coding-standards/wpcs": "*", + "dealerdirect/phpcodesniffer-composer-installer": "*", + "phpcompatibility/php-compatibility": "dev-develop as 9.99.99", "phpcompatibility/phpcompatibility-wp": "*" }, "scripts": { diff --git a/composer.lock b/composer.lock index b656199c..a8fbc6b7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,522 +4,43 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8a942a9a4c9848f4f3e0a20913a7f92d", - "packages": [ - { - "name": "composer/installers", - "version": "v2.2.0", - "source": { - "type": "git", - "url": "https://github.com/composer/installers.git", - "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35", - "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.0 || ^2.0", - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "composer/composer": "1.6.* || ^2.0", - "composer/semver": "^1 || ^3", - "phpstan/phpstan": "^0.12.55", - "phpstan/phpstan-phpunit": "^0.12.16", - "symfony/phpunit-bridge": "^5.3", - "symfony/process": "^5" - }, - "type": "composer-plugin", - "extra": { - "class": "Composer\\Installers\\Plugin", - "branch-alias": { - "dev-main": "2.x-dev" - }, - "plugin-modifies-install-path": true - }, - "autoload": { - "psr-4": { - "Composer\\Installers\\": "src/Composer/Installers" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kyle Robinson Young", - "email": "kyle@dontkry.com", - "homepage": "https://github.com/shama" - } - ], - "description": "A multi-framework Composer library installer", - "homepage": "https://composer.github.io/installers/", - "keywords": [ - "Dolibarr", - "Eliasis", - "Hurad", - "ImageCMS", - "Kanboard", - "Lan Management System", - "MODX Evo", - "MantisBT", - "Mautic", - "Maya", - "OXID", - "Plentymarkets", - "Porto", - "RadPHP", - "SMF", - "Starbug", - "Thelia", - "Whmcs", - "WolfCMS", - "agl", - "annotatecms", - "attogram", - "bitrix", - "cakephp", - "chef", - "cockpit", - "codeigniter", - "concrete5", - "croogo", - "dokuwiki", - "drupal", - "eZ Platform", - "elgg", - "expressionengine", - "fuelphp", - "grav", - "installer", - "itop", - "known", - "kohana", - "laravel", - "lavalite", - "lithium", - "magento", - "majima", - "mako", - "matomo", - "mediawiki", - "miaoxing", - "modulework", - "modx", - "moodle", - "osclass", - "pantheon", - "phpbb", - "piwik", - "ppi", - "processwire", - "puppet", - "pxcms", - "reindex", - "roundcube", - "shopware", - "silverstripe", - "sydes", - "sylius", - "tastyigniter", - "wordpress", - "yawik", - "zend", - "zikula" - ], - "support": { - "issues": "https://github.com/composer/installers/issues", - "source": "https://github.com/composer/installers/tree/v2.2.0" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2022-08-20T06:45:11+00:00" - }, - { - "name": "happyprime/content-aggregator-block", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/happyprime/content-aggregator-block.git", - "reference": "release" - }, - "type": "wordpress-plugin" - }, - { - "name": "happyprime/shadow-terms", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/happyprime/shadow-terms.git", - "reference": "trunk" - }, - "type": "wordpress-plugin" - }, - { - "name": "jeremyfelt/dangit-capital-p", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/jeremyfelt/dangit-capital-p.git", - "reference": "develop" - }, - "type": "wordpress-plugin" - }, - { - "name": "wpackagist-plugin/content-visibility", - "version": "0.2.7", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/content-visibility/", - "reference": "tags/0.2.7" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/content-visibility.0.2.7.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/content-visibility/" - }, - { - "name": "wpackagist-plugin/content-visibility-rss-feed", - "version": "0.1.2", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/content-visibility-rss-feed/", - "reference": "tags/0.1.2" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/content-visibility-rss-feed.0.1.2.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/content-visibility-rss-feed/" - }, - { - "name": "wpackagist-plugin/custom-posts-per-page", - "version": "1.7.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/custom-posts-per-page/", - "reference": "trunk" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/custom-posts-per-page.zip?timestamp=1418327669" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/custom-posts-per-page/" - }, - { - "name": "wpackagist-plugin/gutenberg", - "version": "14.2.0", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/gutenberg/", - "reference": "tags/14.2.0" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/gutenberg.14.2.0.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/gutenberg/" - }, - { - "name": "wpackagist-plugin/indieauth", - "version": "4.2.0", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/indieauth/", - "reference": "tags/4.2.0" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/indieauth.4.2.0.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/indieauth/" - }, - { - "name": "wpackagist-plugin/indieweb", - "version": "3.4.7", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/indieweb/", - "reference": "tags/3.4.7" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/indieweb.3.4.7.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/indieweb/" - }, - { - "name": "wpackagist-plugin/local-wordpress-plugin-repo", - "version": "0.9", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/local-wordpress-plugin-repo/", - "reference": "tags/0.9" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/local-wordpress-plugin-repo.0.9.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/local-wordpress-plugin-repo/" - }, - { - "name": "wpackagist-plugin/micropub", - "version": "2.3.2", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/micropub/", - "reference": "tags/2.3.2" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/micropub.2.3.2.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/micropub/" - }, - { - "name": "wpackagist-plugin/public-post-preview", - "version": "2.9.3", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/public-post-preview/", - "reference": "tags/2.9.3" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/public-post-preview.2.9.3.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/public-post-preview/" - }, - { - "name": "wpackagist-plugin/query-monitor", - "version": "3.10.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/query-monitor/", - "reference": "tags/3.10.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/query-monitor.3.10.1.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/query-monitor/" - }, - { - "name": "wpackagist-plugin/safe-redirect-manager", - "version": "1.11.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/safe-redirect-manager/", - "reference": "tags/1.11.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/safe-redirect-manager.1.11.1.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/safe-redirect-manager/" - }, - { - "name": "wpackagist-plugin/self-sustaining-spam-stopper", - "version": "1.1.0", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/self-sustaining-spam-stopper/", - "reference": "tags/1.1.0" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/self-sustaining-spam-stopper.1.1.0.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/self-sustaining-spam-stopper/" - }, - { - "name": "wpackagist-plugin/semantic-linkbacks", - "version": "3.11.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/semantic-linkbacks/", - "reference": "tags/3.11.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/semantic-linkbacks.3.11.1.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/semantic-linkbacks/" - }, - { - "name": "wpackagist-plugin/share-on-mastodon", - "version": "0.6.4", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/share-on-mastodon/", - "reference": "tags/0.6.4" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/share-on-mastodon.0.6.4.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/share-on-mastodon/" - }, - { - "name": "wpackagist-plugin/shortnotes", - "version": "1.3.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/shortnotes/", - "reference": "tags/1.3.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/shortnotes.1.3.1.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/shortnotes/" - }, - { - "name": "wpackagist-plugin/syntax-highlighting-code-block", - "version": "1.3.1", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/syntax-highlighting-code-block/", - "reference": "tags/1.3.1" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/syntax-highlighting-code-block.1.3.1.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/syntax-highlighting-code-block/" - }, - { - "name": "wpackagist-plugin/webmention", - "version": "4.0.8", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/webmention/", - "reference": "tags/4.0.8" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/webmention.4.0.8.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/webmention/" - } - ], + "content-hash": "93935df048d221a1ddd1f7ebb18a38f0", + "packages": [], "packages-dev": [ { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.2", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + "url": "https://github.com/PHPCSStandards/composer-installer.git", + "reference": "4be43904336affa5c2f70744a348312336afd0da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", + "reference": "4be43904336affa5c2f70744a348312336afd0da", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", - "php": ">=5.3", + "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" + "phpcompatibility/php-compatibility": "^9.0", + "yoast/phpunit-polyfills": "^1.0" }, "type": "composer-plugin", "extra": { - "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, "autoload": { "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -535,7 +56,7 @@ }, { "name": "Contributors", - "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", @@ -559,40 +80,52 @@ "tests" ], "support": { - "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", - "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + "issues": "https://github.com/PHPCSStandards/composer-installer/issues", + "source": "https://github.com/PHPCSStandards/composer-installer" }, - "time": "2022-02-04T12:51:07+00:00" + "time": "2023-01-05T11:28:13+00:00" }, { "name": "phpcompatibility/php-compatibility", - "version": "9.3.5", + "version": "dev-develop", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" + "reference": "34a67f7eb4ec715df26d90429ea8cce88e0b38ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", - "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/34a67f7eb4ec715df26d90429ea8cce88e0b38ff", + "reference": "34a67f7eb4ec715df26d90429ea8cce88e0b38ff", "shasum": "" }, "require": { - "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.5", + "squizlabs/php_codesniffer": "^3.7.1" }, - "conflict": { - "squizlabs/php_codesniffer": "2.6.2" + "replace": { + "wimg/php-compatibility": "*" }, "require-dev": { - "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.3", + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4 || ^10.1.0", + "yoast/phpunit-polyfills": "^1.0.5 || ^2.0.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, + "default-branch": true, "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev", + "dev-develop": "10.x-dev" + } + }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-3.0-or-later" @@ -618,13 +151,15 @@ "keywords": [ "compatibility", "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibility/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibility" }, - "time": "2019-12-27T09:44:58+00:00" + "time": "2023-12-04T17:28:03+00:00" }, { "name": "phpcompatibility/phpcompatibility-paragonie", @@ -738,18 +273,169 @@ }, "time": "2022-10-24T09:00:36+00:00" }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "78b2cae1e9de1c05f0416de6f9a658cbb83ac324" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/78b2cae1e9de1c05f0416de6f9a658cbb83ac324", + "reference": "78b2cae1e9de1c05f0416de6f9a658cbb83ac324", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.1" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "phpcsstandards/phpcsdevtools": "^1.2.1", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "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": "2023-12-02T14:30:12+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/69465cab9d12454e5e7767b9041af0cd8cd13be7", + "reference": "69465cab9d12454e5e7767b9041af0cd8cd13be7", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.7.1 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "yoast/phpunit-polyfills": "^1.0.5 || ^2.0.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "time": "2023-07-16T21:39:41+00:00" + }, { "name": "squizlabs/php_codesniffer", - "version": "3.7.1", + "version": "3.7.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", - "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", "shasum": "" }, "require": { @@ -785,41 +471,50 @@ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2022-06-18T07:21:10+00:00" + "time": "2023-02-22T23:07:41+00:00" }, { "name": "wp-coding-standards/wpcs", - "version": "2.3.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "7da1894633f168fe244afc6de00d141f27517b62" + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", - "reference": "7da1894633f168fe244afc6de00d141f27517b62", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b4caf9689f1a0e4a4c632679a44e638c1c67aff1", + "reference": "b4caf9689f1a0e4a4c632679a44e638c1c67aff1", "shasum": "" }, "require": { + "ext-filter": "*", + "ext-libxml": "*", + "ext-tokenizer": "*", + "ext-xmlreader": "*", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.3.1" + "phpcsstandards/phpcsextra": "^1.1.0", + "phpcsstandards/phpcsutils": "^1.0.8", + "squizlabs/php_codesniffer": "^3.7.2" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.0", + "phpcsstandards/phpcsdevtools": "^1.2.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." + "ext-iconv": "For improved results", + "ext-mbstring": "For improved results" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -836,6 +531,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -843,12 +539,27 @@ "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" + "funding": [ + { + "url": "https://opencollective.com/thewpcc/contribute/wp-php-63406", + "type": "custom" + } + ], + "time": "2023-09-14T07:06:09+00:00" + } + ], + "aliases": [ + { + "package": "phpcompatibility/php-compatibility", + "version": "dev-develop", + "alias": "9.99.99", + "alias_normalized": "9.99.99.0" } ], - "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "phpcompatibility/php-compatibility": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [], diff --git a/mu-plugins/base/likes.php b/mu-plugins/base/likes.php deleted file mode 100644 index e1c7b647..00000000 --- a/mu-plugins/base/likes.php +++ /dev/null @@ -1,161 +0,0 @@ - array( - 'name' => 'Likes', - 'singular_name' => 'Like', - ), - 'public' => true, - 'menu_position' => 6, - 'menu_icon' => 'dashicons-star-filled', - 'supports' => array( - 'comments', - 'webmentions', - ), - 'register_meta_box_cb' => __NAMESPACE__ . '\register_meta_boxes', - 'has_archive' => true, - 'rewrite' => array( - 'slug' => 'liked', - ), - ) - ); -} - -/** - * Register the meta boxes used to store data for likes. - * - * @param WP_Post $post The current like being edited. - */ -function register_meta_boxes( $post ) { - add_meta_box( 'like-data-primary', 'Like data', __NAMESPACE__ . '\display_meta_box', $post->post_type, 'normal', 'high' ); -} - -/** - * Display the meta box used to capture like data. - * - * @param WP_Post $post The current like being edited. - */ -function display_meta_box( $post ) { - $url = get_post_meta( $post->ID, 'mf2_like-of', true ); - $url = is_array( $url ) ? array_pop( $url ) : $url; - $title = get_post_meta( $post->ID, 'like_title', true ); - $notes = get_post_meta( $post->ID, 'like_notes', true ); - - wp_nonce_field( 'save-like-data', 'like_data_nonce' ); - ?> -

URL

- - -

Title

- - -

Notes

- - post_status ) { - return; - } - - if ( ! isset( $_POST['like_data_nonce'] ) || ! wp_verify_nonce( $_POST['like_data_nonce'], 'save-like-data' ) ) { - return; - } - - if ( isset( $_POST['like_url'] ) && '' !== $_POST['like_url'] ) { - update_post_meta( $post_id, 'mf2_like-of', esc_url_raw( $_POST['like_url'] ) ); - } elseif ( isset( $_POST['like_url'] ) && '' === $_POST['like_url'] ) { - delete_post_meta( $post_id, 'mf2_like-of' ); - } - - if ( isset( $_POST['like_title'] ) && '' !== $_POST['like_title'] ) { - update_post_meta( $post_id, 'like_title', sanitize_text_field( $_POST['like_title'] ) ); - } elseif ( isset( $_POST['like_title'] ) && '' === $_POST['like_title'] ) { - delete_post_meta( $post_id, 'like_title' ); - } - - if ( isset( $_POST['like_notes'] ) && '' !== $_POST['like_notes'] ) { - update_post_meta( $post_id, 'like_notes', wp_kses_post( $_POST['like_notes'] ) ); - } elseif ( isset( $_POST['like_notes'] ) && '' === $_POST['like_notes'] ) { - delete_post_meta( $post_id, 'like_notes' ); - } -} - -/** - * Modify the defaults stored with a new like. - * - * @param array $post Current post data to store for the like. - * @return array $post Modified post data to store. - */ -function set_default_post_data( $post ) { - if ( 'like' === $post['post_type'] && '' === $post['post_name'] && 'Auto Draft' === $post['post_title'] ) { - $post['post_title'] = 'Like'; - $post['post_name'] = gmdate( 'YmdHis' ); - } - - if ( 'like' === $post['post_type'] && isset( $_POST['like_title'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing - $post['post_title'] = sanitize_text_field( $_POST['like_title'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing - $post['post_name'] = sanitize_key( $_POST['like_title'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing - } - - return $post; -} - -/** - * Add the URL associated with this like to the list of URLs to be - * pinged with a webmention. - * - * @param array $urls List of URLs to ping. - * @param int $post_id The current post ID. - * @return array $urls Modified list of URLs to ping. - */ -function filter_webmention_links( $urls, $post_id ) { - $post = get_post( $post_id ); - - if ( 'like' === $post->post_type ) { - $url = get_post_meta( $post_id, 'mf2_like-of', true ); - $url = is_array( $url ) ? array_pop( $url ) : $url; - - if ( '' !== $url ) { - $urls[] = $url; - } - } - - return $urls; -} diff --git a/mu-plugins/index.php b/mu-plugins/index.php index 27dd8187..c38525e4 100644 --- a/mu-plugins/index.php +++ b/mu-plugins/index.php @@ -7,8 +7,10 @@ require_once __DIR__ . '/wp/head.php'; require_once __DIR__ . '/wp/styles.php'; -require_once __DIR__ . '/base/likes.php'; - require_once __DIR__ . '/plugins/content-visibility.php'; require_once __DIR__ . '/plugins/indieweb.php'; require_once __DIR__ . '/plugins/micropub.php'; + +if ( file_exists( __DIR__ . '/local/hacks.php' ) ) { + require_once __DIR__ . '/local/hacks.php'; +}