Changeset 13355
- Timestamp:
- 11/05/2022 05:25:42 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/unit-tests.yml
r13324 r13355 17 17 include: 18 18 - php: '8.0' 19 wp_version: '6. 0'19 wp_version: '6.1' 20 20 - php: '7.4' 21 wp_version: '6. 0'21 wp_version: '6.1' 22 22 - php: '7.4' 23 23 wp_version: '5.7' … … 56 56 with: 57 57 composer-options: "--ignore-platform-reqs" 58 59 - name: Adapt WP PHPUnit version for WP < 6.1 60 run: | 61 if [ ${{ env.WP_VERSION }} == '5.7' ]; then 62 composer require wp-phpunit/wp-phpunit:6.0 --dev 63 fi 58 64 59 65 - name: Cache node modules -
trunk/composer.json
r13324 r13355 45 45 "require-dev": { 46 46 "buddypress/bp-coding-standards": "dev-trunk", 47 "wp-phpunit/wp-phpunit": "^6. 0",47 "wp-phpunit/wp-phpunit": "^6.1", 48 48 "yoast/phpunit-polyfills": "^1.0.1" 49 49 }, -
trunk/npm-shrinkwrap.json
r13325 r13355 673 673 }, 674 674 "@babel/plugin-syntax-typescript": { 675 "version": "7. 18.6",676 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7. 18.6.tgz",677 "integrity": "sha512- mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==",678 "dev": true, 679 "requires": { 680 "@babel/helper-plugin-utils": "^7.1 8.6"675 "version": "7.20.0", 676 "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz", 677 "integrity": "sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==", 678 "dev": true, 679 "requires": { 680 "@babel/helper-plugin-utils": "^7.19.0" 681 681 } 682 682 }, … … 957 957 }, 958 958 "@babel/plugin-transform-runtime": { 959 "version": "7.19. 1",960 "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19. 1.tgz",961 "integrity": "sha512- 2nJjTUFIzBMP/f/miLxEK9vxwW/KUXsdvN4sR//TmuDhe6yU2h57WmIOE12Gng3MDP/xpjUV/ToZRdcf8Yj4fA==",959 "version": "7.19.6", 960 "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz", 961 "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==", 962 962 "dev": true, 963 963 "requires": { … … 1017 1017 }, 1018 1018 "@babel/plugin-transform-typescript": { 1019 "version": "7.19.1", 1020 "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.19.1.tgz", 1021 "integrity": "sha512-+ILcOU+6mWLlvCwnL920m2Ow3wWx3Wo8n2t5aROQmV55GZt+hOiLvBaa3DNzRjSEHa1aauRs4/YLmkCfFkhhRQ==", 1022 "dev": true, 1023 "requires": { 1024 "@babel/helper-create-class-features-plugin": "^7.19.0", 1025 "@babel/helper-plugin-utils": "^7.19.0", 1026 "@babel/plugin-syntax-typescript": "^7.18.6" 1019 "version": "7.20.2", 1020 "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.2.tgz", 1021 "integrity": "sha512-jvS+ngBfrnTUBfOQq8NfGnSbF9BrqlR6hjJ2yVxMkmO5nL/cdifNbI30EfjRlN4g5wYWNnMPyj5Sa6R1pbLeag==", 1022 "dev": true, 1023 "requires": { 1024 "@babel/helper-create-class-features-plugin": "^7.20.2", 1025 "@babel/helper-plugin-utils": "^7.20.2", 1026 "@babel/plugin-syntax-typescript": "^7.20.0" 1027 }, 1028 "dependencies": { 1029 "@babel/helper-create-class-features-plugin": { 1030 "version": "7.20.2", 1031 "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.2.tgz", 1032 "integrity": "sha512-k22GoYRAHPYr9I+Gvy2ZQlAe5mGy8BqWst2wRt8cwIufWTxrsVshhIBvYNqC80N0GSFWTsqRVexOtfzlgOEDvA==", 1033 "dev": true, 1034 "requires": { 1035 "@babel/helper-annotate-as-pure": "^7.18.6", 1036 "@babel/helper-environment-visitor": "^7.18.9", 1037 "@babel/helper-function-name": "^7.19.0", 1038 "@babel/helper-member-expression-to-functions": "^7.18.9", 1039 "@babel/helper-optimise-call-expression": "^7.18.6", 1040 "@babel/helper-replace-supers": "^7.19.1", 1041 "@babel/helper-split-export-declaration": "^7.18.6" 1042 } 1043 }, 1044 "@babel/helper-plugin-utils": { 1045 "version": "7.20.2", 1046 "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", 1047 "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", 1048 "dev": true 1049 } 1027 1050 } 1028 1051 }, … … 1479 1502 }, 1480 1503 "@sindresorhus/is": { 1481 "version": " 2.1.1",1482 "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is- 2.1.1.tgz",1483 "integrity": "sha512- /aPsuoj/1Dw/kzhkgz+ES6TxG0zfTMGLwuK2ZG00k/iJzYHTLCE8mVU8EPqEOp/lmxPoq1C1C9RYToRKb2KEfg==",1504 "version": "4.6.0", 1505 "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", 1506 "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", 1484 1507 "dev": true 1485 1508 }, … … 1531 1554 }, 1532 1555 "@types/keyv": { 1533 "version": " 3.1.4",1534 "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv- 3.1.4.tgz",1535 "integrity": "sha512- BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",1536 "dev": true, 1537 "requires": { 1538 " @types/node": "*"1556 "version": "4.2.0", 1557 "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-4.2.0.tgz", 1558 "integrity": "sha512-xoBtGl5R9jeKUhc8ZqeYaRDx04qqJ10yhhXYGmJ4Jr8qKpvMsDQQrNUvF/wUJ4klOtmJeJM+p2Xo3zp9uaC3tw==", 1559 "dev": true, 1560 "requires": { 1561 "keyv": "*" 1539 1562 } 1540 1563 }, … … 1555 1578 }, 1556 1579 "@types/node": { 1557 "version": "18. 7.18",1558 "resolved": "https://registry.npmjs.org/@types/node/-/node-18. 7.18.tgz",1559 "integrity": "sha512- m+6nTEOadJZuTPkKR/SYK3A2d7FZrgElol9UP1Kae90VVU4a6mxnPuLiIW1m4Cq4gZ/nWb9GrdVXJCoCazDAbg==",1580 "version": "18.11.9", 1581 "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", 1582 "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", 1560 1583 "dev": true 1561 1584 }, … … 1585 1608 }, 1586 1609 "@types/react": { 1587 "version": "17.0.5 0",1588 "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.5 0.tgz",1589 "integrity": "sha512- ZCBHzpDb5skMnc1zFXAXnL3l1FAdi+xZvwxK+PkglMmBrwjpp9nKaWuEvrGnSifCJmBFGxZOOFuwC6KH/s0NuA==",1610 "version": "17.0.52", 1611 "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.52.tgz", 1612 "integrity": "sha512-vwk8QqVODi0VaZZpDXQCmEmiOuyjEFPY7Ttaw5vjM112LOq37yz1CDJGrRJwA1fYEq4Iitd5rnjd1yWAc/bT+A==", 1590 1613 "dev": true, 1591 1614 "requires": { … … 1596 1619 }, 1597 1620 "@types/react-dom": { 1598 "version": "17.0.1 7",1599 "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.1 7.tgz",1600 "integrity": "sha512- VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==",1621 "version": "17.0.18", 1622 "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.18.tgz", 1623 "integrity": "sha512-rLVtIfbwyur2iFKykP2w0pl/1unw26b5td16d5xMgp7/yjTHomkyxPYChFoCr/FtEX1lN9wY6lFj1qvKdS5kDw==", 1601 1624 "dev": true, 1602 1625 "requires": { … … 1626 1649 }, 1627 1650 "@wordpress/babel-plugin-import-jsx-pragma": { 1628 "version": " 3.2.0",1629 "resolved": "https://registry.npmjs.org/@wordpress/babel-plugin-import-jsx-pragma/-/babel-plugin-import-jsx-pragma- 3.2.0.tgz",1630 "integrity": "sha512- XK3Sdpi9MWoy5qPHnRroY/ypX0VtT5yI5809u5As1P/3k4vlXNw8USH4lJ+rkurAOVqqN5mFlf2XAL9AkpfXyg==",1651 "version": "4.4.0", 1652 "resolved": "https://registry.npmjs.org/@wordpress/babel-plugin-import-jsx-pragma/-/babel-plugin-import-jsx-pragma-4.4.0.tgz", 1653 "integrity": "sha512-4bePHGzOjGmJzuq81kSPSinsrKclMQEoaNqZFVzP0vOwvv9eTiBjsoFPQEu4jdIBb9A9wGOYmTK0TO10pV1KlQ==", 1631 1654 "dev": true 1632 1655 }, 1633 1656 "@wordpress/babel-preset-default": { 1634 "version": " 6.17.0",1635 "resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default- 6.17.0.tgz",1636 "integrity": "sha512- mBB1KHWT2vN+maKIPYLQSxhhAzW6CNwYiJNRSNaNBALie9TULe7etrnwoZ1eqPVsuYvBlXB4XKcPaSm3/FW+qQ==",1657 "version": "7.5.0", 1658 "resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default-7.5.0.tgz", 1659 "integrity": "sha512-TVHLyoypYu7s7JyasYNw/OU4iqlPNrOYVYD3YMsVriKxT6Oql0L6YRuWdIEmmxwj3Hsr/QcJijx7Dk2f3m6+Nw==", 1637 1660 "dev": true, 1638 1661 "requires": { … … 1643 1666 "@babel/preset-typescript": "^7.16.0", 1644 1667 "@babel/runtime": "^7.16.0", 1645 "@wordpress/babel-plugin-import-jsx-pragma": "^ 3.2.0",1646 "@wordpress/browserslist-config": "^ 4.1.2",1647 "@wordpress/element": "^4.1 3.0",1648 "@wordpress/warning": "^2. 15.0",1668 "@wordpress/babel-plugin-import-jsx-pragma": "^4.4.0", 1669 "@wordpress/browserslist-config": "^5.4.0", 1670 "@wordpress/element": "^4.19.0", 1671 "@wordpress/warning": "^2.21.0", 1649 1672 "browserslist": "^4.17.6", 1650 1673 "core-js": "^3.19.1" 1674 }, 1675 "dependencies": { 1676 "@wordpress/browserslist-config": { 1677 "version": "5.4.0", 1678 "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-5.4.0.tgz", 1679 "integrity": "sha512-pMDzct5d8vqljwXquo9pQxlbjuDQNfY/g+Aw21qBvzXDApmXQHasr0aritkQkC7yLrk6DoEY5C8+hqzsDW18Gg==", 1680 "dev": true 1681 } 1651 1682 } 1652 1683 }, … … 1658 1689 }, 1659 1690 "@wordpress/element": { 1660 "version": "4.1 5.0",1661 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.1 5.0.tgz",1662 "integrity": "sha512- Lf5q9oU8k/4ry79oCsC0AN6PpDU/BM0z00hmUUmQIciz6MPnov+47oT/Wbrm8fXXHuW2cPquWGWbib+IrOb26g==",1691 "version": "4.19.0", 1692 "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.19.0.tgz", 1693 "integrity": "sha512-5Ul1cpbtgagq0NV6hUiwszeiXtKFa06Po51PGvza62KylCIHCLF2ZlaY2zjeGLO10gKKKpCi7jRODFqOvWH3hQ==", 1663 1694 "dev": true, 1664 1695 "requires": { … … 1666 1697 "@types/react": "^17.0.37", 1667 1698 "@types/react-dom": "^17.0.11", 1668 "@wordpress/escape-html": "^2. 17.0",1699 "@wordpress/escape-html": "^2.21.0", 1669 1700 "change-case": "^4.1.2", 1670 1701 "is-plain-object": "^5.0.0", … … 1674 1705 }, 1675 1706 "@wordpress/env": { 1676 "version": " 4.9.0",1677 "resolved": "https://registry.npmjs.org/@wordpress/env/-/env- 4.9.0.tgz",1678 "integrity": "sha512- C2g5aOYxl1Bd9lypvEMjXZ1s1Gx/JHpFWuPlCAI8gAzwzB9jCIZkqpU85GsGScpZLAANS/N7wF3LMY68UkN9fQ==",1707 "version": "5.6.0", 1708 "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-5.6.0.tgz", 1709 "integrity": "sha512-DTIRcNQCTuqmpcq5x9kNSC67K6L08c9HAXM7ggAKGLMM+yYmJuCNjmay0EHHw1iaF48Ns1XmtMLXeDqkRUHkhw==", 1679 1710 "dev": true, 1680 1711 "requires": { … … 1683 1714 "docker-compose": "^0.22.2", 1684 1715 "extract-zip": "^1.6.7", 1685 "got": "^1 0.7.0",1716 "got": "^11.8.5", 1686 1717 "inquirer": "^7.1.0", 1687 1718 "js-yaml": "^3.13.1", … … 1745 1776 }, 1746 1777 "@wordpress/escape-html": { 1747 "version": "2. 17.0",1748 "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2. 17.0.tgz",1749 "integrity": "sha512- CmJMBiSBW+KNHEV8DZFRkzJH+U1tpkaIKpRBRISduBZGXqf35kvkJsXXbyQ9WVnMrh8DClT7YEzeX3HUGyyyew==",1778 "version": "2.21.0", 1779 "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.21.0.tgz", 1780 "integrity": "sha512-P/9wUbIVQPO9gdxeosfYRqiAFQPW0AGy7amaMuHNMICleZflQ79pfvEZV7V8c8ke2VjXcQ3QWHt+mDbyGTT7hg==", 1750 1781 "dev": true, 1751 1782 "requires": { … … 1765 1796 }, 1766 1797 "@wordpress/warning": { 1767 "version": "2. 17.0",1768 "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-2. 17.0.tgz",1769 "integrity": "sha512- QZ444GtDShbrgtNPGlIGQTSEo/8Fxk2qyNH3ZtktCv3RmjsJI2u35ldquia9PsFqcaTjqZ4Y9+IxbeanrR/RTg==",1798 "version": "2.21.0", 1799 "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-2.21.0.tgz", 1800 "integrity": "sha512-XE6ZTcogFA2+geSQRdnFABuNp2/IP/3fe2sndQzt5Fk7CHuEcEjVSS+SI5ywnzAu9g1qbD2X1t5CE77DtZ6w7A==", 1770 1801 "dev": true 1771 1802 }, … … 1843 1874 "requires": { 1844 1875 "type-fest": "^0.21.3" 1845 },1846 "dependencies": {1847 "type-fest": {1848 "version": "0.21.3",1849 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",1850 "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",1851 "dev": true1852 }1853 1876 } 1854 1877 }, … … 3174 3197 }, 3175 3198 "cacheable-lookup": { 3176 "version": "2.0.1", 3177 "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-2.0.1.tgz", 3178 "integrity": "sha512-EMMbsiOTcdngM/K6gV/OxF2x0t07+vMOWxZNSCRQMjO2MY2nhZQ6OYhOOpyQrbhqsgtvKGI7hcq6xjnA92USjg==", 3179 "dev": true, 3180 "requires": { 3181 "@types/keyv": "^3.1.1", 3182 "keyv": "^4.0.0" 3183 } 3199 "version": "5.0.4", 3200 "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", 3201 "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", 3202 "dev": true 3184 3203 }, 3185 3204 "cacheable-request": { … … 3684 3703 }, 3685 3704 "cliui": { 3686 "version": " 7.0.4",3687 "resolved": "https://registry.npmjs.org/cliui/-/cliui- 7.0.4.tgz",3688 "integrity": "sha512- OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",3705 "version": "8.0.1", 3706 "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 3707 "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 3689 3708 "dev": true, 3690 3709 "requires": { 3691 3710 "string-width": "^4.2.0", 3692 "strip-ansi": "^6.0. 0",3711 "strip-ansi": "^6.0.1", 3693 3712 "wrap-ansi": "^7.0.0" 3694 3713 } … … 3716 3735 "requires": { 3717 3736 "mimic-response": "^1.0.0" 3718 },3719 "dependencies": {3720 "mimic-response": {3721 "version": "1.0.1",3722 "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",3723 "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",3724 "dev": true3725 }3726 3737 } 3727 3738 }, … … 3936 3947 }, 3937 3948 "core-js": { 3938 "version": "3.2 5.1",3939 "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.2 5.1.tgz",3940 "integrity": "sha512- sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ==",3949 "version": "3.26.0", 3950 "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.0.tgz", 3951 "integrity": "sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw==", 3941 3952 "dev": true 3942 3953 }, … … 4519 4530 }, 4520 4531 "decompress-response": { 4521 "version": "5.0.0", 4522 "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-5.0.0.tgz", 4523 "integrity": "sha512-TLZWWybuxWgoW7Lykv+gq9xvzOsUjQ9tF09Tj6NSTYGMTCHNXzrPnD6Hi+TgZq19PyTAGH4Ll/NIM/eTGglnMw==", 4524 "dev": true, 4525 "requires": { 4526 "mimic-response": "^2.0.0" 4532 "version": "6.0.0", 4533 "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", 4534 "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", 4535 "dev": true, 4536 "requires": { 4537 "mimic-response": "^3.1.0" 4538 }, 4539 "dependencies": { 4540 "mimic-response": { 4541 "version": "3.1.0", 4542 "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", 4543 "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", 4544 "dev": true 4545 } 4527 4546 } 4528 4547 }, … … 5010 5029 "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", 5011 5030 "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", 5012 "dev": true 5031 "dev": true, 5032 "optional": true 5013 5033 }, 5014 5034 "ecc-jsbn": { … … 6401 6421 }, 6402 6422 "got": { 6403 "version": "1 0.7.0",6404 "resolved": "https://registry.npmjs.org/got/-/got-1 0.7.0.tgz",6405 "integrity": "sha512- aWTDeNw9g+XqEZNcTjMMZSy7B7yE9toWOFYip7ofFTLleJhvZwUxxTxkTpKvF+p1SAA4VHmuEy7PiHTHyq8tJg==",6406 "dev": true, 6407 "requires": { 6408 "@sindresorhus/is": "^ 2.0.0",6409 "@szmarczak/http-timer": "^4.0. 0",6423 "version": "11.8.5", 6424 "resolved": "https://registry.npmjs.org/got/-/got-11.8.5.tgz", 6425 "integrity": "sha512-o0Je4NvQObAuZPHLFoRSkdG2lTgtcynqymzg2Vupdx6PorhaT5MCbIyXG6d4D94kk8ZG57QeosgdiqfJWhEhlQ==", 6426 "dev": true, 6427 "requires": { 6428 "@sindresorhus/is": "^4.0.0", 6429 "@szmarczak/http-timer": "^4.0.5", 6410 6430 "@types/cacheable-request": "^6.0.1", 6411 " cacheable-lookup": "^2.0.0",6412 "cacheable- request": "^7.0.1",6413 " decompress-response": "^5.0.0",6414 "d uplexer3": "^0.1.4",6415 " get-stream": "^5.0.0",6431 "@types/responselike": "^1.0.0", 6432 "cacheable-lookup": "^5.0.3", 6433 "cacheable-request": "^7.0.2", 6434 "decompress-response": "^6.0.0", 6435 "http2-wrapper": "^1.0.0-beta.5.2", 6416 6436 "lowercase-keys": "^2.0.0", 6417 "mimic-response": "^2.1.0",6418 6437 "p-cancelable": "^2.0.0", 6419 "p-event": "^4.0.0", 6420 "responselike": "^2.0.0", 6421 "to-readable-stream": "^2.0.0", 6422 "type-fest": "^0.10.0" 6438 "responselike": "^2.0.0" 6423 6439 } 6424 6440 }, … … 7764 7780 "jsprim": "^1.2.2", 7765 7781 "sshpk": "^1.7.0" 7782 } 7783 }, 7784 "http2-wrapper": { 7785 "version": "1.0.3", 7786 "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", 7787 "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", 7788 "dev": true, 7789 "requires": { 7790 "quick-lru": "^5.1.1", 7791 "resolve-alpn": "^1.0.0" 7792 }, 7793 "dependencies": { 7794 "quick-lru": { 7795 "version": "5.1.1", 7796 "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", 7797 "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", 7798 "dev": true 7799 } 7766 7800 } 7767 7801 }, … … 9396 9430 }, 9397 9431 "mimic-response": { 9398 "version": " 2.1.0",9399 "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response- 2.1.0.tgz",9400 "integrity": "sha512- wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",9432 "version": "1.0.1", 9433 "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 9434 "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 9401 9435 "dev": true 9402 9436 }, … … 10469 10503 "dev": true 10470 10504 }, 10471 "p-event": {10472 "version": "4.2.0",10473 "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz",10474 "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==",10475 "dev": true,10476 "requires": {10477 "p-timeout": "^3.1.0"10478 }10479 },10480 10505 "p-finally": { 10481 10506 "version": "1.0.0", 10482 10507 "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 10483 10508 "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", 10484 "dev": true 10509 "dev": true, 10510 "optional": true 10485 10511 }, 10486 10512 "p-is-promise": { … … 10537 10563 "dev": true, 10538 10564 "optional": true 10539 },10540 "p-timeout": {10541 "version": "3.2.0",10542 "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz",10543 "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==",10544 "dev": true,10545 "requires": {10546 "p-finally": "^1.0.0"10547 }10548 10565 }, 10549 10566 "p-try": { … … 13045 13062 } 13046 13063 }, 13064 "resolve-alpn": { 13065 "version": "1.2.1", 13066 "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", 13067 "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", 13068 "dev": true 13069 }, 13047 13070 "resolve-dir": { 13048 13071 "version": "1.0.1", … … 13630 13653 }, 13631 13654 "simple-git": { 13632 "version": "3.14. 0",13633 "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.14. 0.tgz",13634 "integrity": "sha512- Paad1BkrI7vWhImLybDRYOHnh3WPsHSKXJpmKM+iGjjKNV91XaOdd+yIdZ/gqdzncHDEKYff4k+74oNo1R+U8Q==",13655 "version": "3.14.1", 13656 "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.14.1.tgz", 13657 "integrity": "sha512-1ThF4PamK9wBORVGMK9HK5si4zoGS2GpRO7tkAFObA4FZv6dKaCVHLQT+8zlgiBm6K2h+wEU9yOaFCu/SR3OyA==", 13635 13658 "dev": true, 13636 13659 "requires": { … … 15238 15261 } 15239 15262 }, 15240 "to-readable-stream": {15241 "version": "2.1.0",15242 "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-2.1.0.tgz",15243 "integrity": "sha512-o3Qa6DGg1CEXshSdvWNX2sN4QHqg03SPq7U6jPXRahlQdl5dK8oXjkU/2/sGrnOZKeGV1zLSO8qPwyKklPPE7w==",15244 "dev": true15245 },15246 15263 "to-regex": { 15247 15264 "version": "3.0.2", … … 15323 15340 }, 15324 15341 "tslib": { 15325 "version": "2.4. 0",15326 "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4. 0.tgz",15327 "integrity": "sha512- d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",15342 "version": "2.4.1", 15343 "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", 15344 "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", 15328 15345 "dev": true 15329 15346 }, … … 15359 15376 }, 15360 15377 "type-fest": { 15361 "version": "0. 10.0",15362 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0. 10.0.tgz",15363 "integrity": "sha512- EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw==",15378 "version": "0.21.3", 15379 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", 15380 "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", 15364 15381 "dev": true 15365 15382 }, … … 16127 16144 }, 16128 16145 "yargs": { 16129 "version": "17. 5.1",16130 "resolved": "https://registry.npmjs.org/yargs/-/yargs-17. 5.1.tgz",16131 "integrity": "sha512- t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==",16132 "dev": true, 16133 "requires": { 16134 "cliui": "^ 7.0.2",16146 "version": "17.6.2", 16147 "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", 16148 "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", 16149 "dev": true, 16150 "requires": { 16151 "cliui": "^8.0.1", 16135 16152 "escalade": "^3.1.1", 16136 16153 "get-caller-file": "^2.0.5", … … 16138 16155 "string-width": "^4.2.3", 16139 16156 "y18n": "^5.0.5", 16140 "yargs-parser": "^21. 0.0"16157 "yargs-parser": "^21.1.1" 16141 16158 } 16142 16159 }, -
trunk/package.json
r13285 r13355 7 7 "devDependencies": { 8 8 "@babel/core": "~7.18.2", 9 "@wordpress/babel-preset-default": "^ 6.11.0",9 "@wordpress/babel-preset-default": "^7.1.1", 10 10 "@wordpress/browserslist-config": "~4.1.0", 11 "@wordpress/env": "^ 4.7.0",11 "@wordpress/env": "^5.6.0", 12 12 "@wordpress/stylelint-config": "~19.1.0", 13 "autoprefixer": "^9.8. 6",13 "autoprefixer": "^9.8.8", 14 14 "grunt": "^1.5.3", 15 15 "grunt-check-dependencies": "~1.0.0", -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r13280 r13355 395 395 396 396 // Fetch the user IDs of all the members of the group. 397 $user_ids = BP_Groups_Member::get_group_member_ids( $this->id ); 398 $user_id_str = esc_sql( implode( ',', wp_parse_id_list( $user_ids ) ) ); 399 400 // Modify group count usermeta for members. 401 $wpdb->query( "UPDATE {$wpdb->usermeta} SET meta_value = meta_value - 1 WHERE meta_key = 'total_group_count' AND user_id IN ( {$user_id_str} )" ); 397 $user_ids = BP_Groups_Member::get_group_member_ids( $this->id ); 398 399 if ( $user_ids ) { 400 $user_id_str = esc_sql( implode( ',', wp_parse_id_list( $user_ids ) ) ); 401 402 // Modify group count usermeta for members. 403 $wpdb->query( "UPDATE {$wpdb->usermeta} SET meta_value = meta_value - 1 WHERE meta_key = 'total_group_count' AND user_id IN ( {$user_id_str} )" ); 404 } 402 405 403 406 // Now delete all group member entries. … … 419 422 420 423 // Finally remove the group entry from the DB. 421 if ( ! $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name} WHERE id = %d", $this->id ) ) )424 if ( ! $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name} WHERE id = %d", $this->id ) ) ) { 422 425 return false; 426 } 423 427 424 428 return true; -
trunk/tests/phpunit/testcases/groups/functions.php
r13280 r13355 19 19 20 20 static public function wpTearDownAfterClass() { 21 array_map( 'groups_delete_group', self::$group_ids ); 21 22 array_map( array( __CLASS__, 'delete_user' ), self::$user_ids ); 22 array_map( 'groups_delete_group', self::$group_ids );23 23 } 24 24
Note: See TracChangeset
for help on using the changeset viewer.