Skip to content

Commit

Permalink
fix: Account for WPCF7_ShortcodeManager being deprecated (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored Dec 16, 2024
1 parent 0596a66 commit 4e3b90d
Show file tree
Hide file tree
Showing 16 changed files with 2,716 additions and 50 deletions.
10 changes: 6 additions & 4 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/tests
/vendor
/node_modules
/assets/dotorg
/tests/
/vendor/
/node_modules/
/tools/
/tests/
/assets/dotorg/
Gruntfile.js
composer.json
composer.lock
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
/node_modules
/vendor
.DS_Store
.phpunit.result.cache

# Local overrides.
/phpcs.xml
/phpunit.xml
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html/wp-content/plugins/contact-form-7-extras": "${workspaceFolder}",
"/var/www/html/wp-content": "${workspaceFolder}/tools/local/wp-content",
"/var/www/html": "${workspaceFolder}/tools/local/wordpress"
}
}
]
}
8 changes: 5 additions & 3 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"plugins": [
"."
]
"core": "./tools/local/wordpress",
"mappings": {
"wp-content": "./tools/local/wp-content",
"wp-content/plugins/contact-form-7-extras": "."
}
}
41 changes: 40 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,52 @@
"source": "https://github.com/kasparsd/contact-form-7-extras",
"docs": "https://formcontrols.com/docs"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
}
],
"require-dev": {
"wp-coding-standards/wpcs": "^2.0"
"wp-coding-standards/wpcs": "^3.1",
"roots/wordpress": "^6.7",
"wpackagist-plugin/contact-form-7": "^6.0",
"roots/wordpress-core-installer": "^1.100",
"wpackagist-theme/twentytwentyfive": "^1.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"wp-phpunit/wp-phpunit": "^6.7",
"yoast/phpunit-polyfills": "^3.0",
"wpackagist-plugin/query-monitor": "^3.17",
"wpackagist-plugin/wp-mail-debugger": "^1.1"
},
"scripts": {
"lint": [
"phpcs",
"composer validate"
],
"format": [
"phpcbf"
],
"test": [
"phpunit"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true,
"composer/installers": true
}
},
"extra": {
"wordpress-install-dir": "tools/local/wordpress",
"installer-paths": {
"tools/local/wp-content/plugins/{$name}/": [ "type:wordpress-plugin" ],
"tools/local/wp-content/themes/{$name}/": [ "type:wordpress-theme" ]
}
}
}
Loading

0 comments on commit 4e3b90d

Please sign in to comment.