2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-04 09:01:05 +08:00
Commit graph

2216 commits

Author SHA1 Message Date
Angus McLeod
22ee91dfb5
Two Five Seven (#541)
* Don't try to add url to <head> if it's not present

* Update js config and formatting for comment block and sidebar

* PHP Linting

* FIX: Don't auto-publish updates to existing posts.

See: https://meta.discourse.org/t/disable-posting-wordpress-articles-to-discourse-when-theyre-updated/204488

* Bump version and release notes.

* Fix remote-post.php linting

* Update tests.yml to install svn

* Re-generate comments js build
2025-04-15 16:53:23 -07:00
Angus McLeod
b20e8fa0f0
Two Five Six (#540)
* Bump version and add release notes

* Fix change date
2024-12-11 09:03:30 -08:00
dependabot[bot]
471720c277
Bump axios from 1.6.8 to 1.7.7 in /blocks/comments (#535)
Bumps [axios](https://github.com/axios/axios) from 1.6.8 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.8...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 11:39:31 -08:00
dependabot[bot]
ed3c2f083f
Bump ws and @wordpress/scripts in /blocks/comments (#536)
Bumps [ws](https://github.com/websockets/ws) to 8.18.0 and updates ancestor dependency [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts). These dependencies need to be updated together.


Updates `ws` from 8.13.0 to 8.18.0
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.18.0)

Updates `@wordpress/scripts` from 27.5.0 to 30.5.1
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@30.5.1/packages/scripts)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 11:39:02 -08:00
dependabot[bot]
5f5923e960
Bump webpack from 5.91.0 to 5.96.1 in /blocks/comments (#537)
Bumps [webpack](https://github.com/webpack/webpack) from 5.91.0 to 5.96.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.91.0...v5.96.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 11:38:13 -08:00
Angus McLeod
4d758d949f
Don't auto-publish quick edits (#538) 2024-11-27 11:34:20 -08:00
Angus McLeod
65f2e6d9c9
Bump version (#534) 2024-10-10 09:11:04 -07:00
Angus McLeod
a80d38b8f1
Add wpdc_join_discussion_link_html filter (#533) 2024-10-09 08:53:30 -07:00
dependabot[bot]
f6e6c5057e
Bump ws and @wordpress/scripts in /admin/discourse-sidebar (#532)
Bumps [ws](https://github.com/websockets/ws) to 8.18.0 and updates ancestor dependency [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts). These dependencies need to be updated together.


Updates `ws` from 8.13.0 to 8.18.0
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.18.0)

Updates `@wordpress/scripts` from 27.5.0 to 29.0.0
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@29.0.0/packages/scripts)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 11:14:17 +02:00
dependabot[bot]
1ea27f79c2
Bump webpack from 5.91.0 to 5.94.0 in /admin/discourse-sidebar (#525)
Bumps [webpack](https://github.com/webpack/webpack) from 5.91.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.91.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 11:13:31 +02:00
dependabot[bot]
953001cfb3
Bump serve-static and express in /admin/discourse-sidebar (#528)
Bumps [serve-static](https://github.com/expressjs/serve-static) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 11:11:41 +02:00
dependabot[bot]
c6c08f76cd
Bump axios from 1.6.8 to 1.7.7 in /admin/discourse-sidebar (#530)
Bumps [axios](https://github.com/axios/axios) from 1.6.8 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.8...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 11:06:52 +02:00
dependabot[bot]
b46fd24c94
Bump send and express in /blocks/comments (#527)
Bumps [send](https://github.com/pillarjs/send) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `send` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/pillarjs/send/releases)
- [Changelog](https://github.com/pillarjs/send/blob/master/HISTORY.md)
- [Commits](https://github.com/pillarjs/send/compare/0.18.0...0.19.0)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: send
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 10:57:16 +02:00
dependabot[bot]
b46a0dabf7
Bump serve-static and express in /blocks/comments (#526)
Bumps [serve-static](https://github.com/expressjs/serve-static) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `serve-static` from 1.15.0 to 1.16.2
- [Release notes](https://github.com/expressjs/serve-static/releases)
- [Changelog](https://github.com/expressjs/serve-static/blob/v1.16.2/HISTORY.md)
- [Commits](https://github.com/expressjs/serve-static/compare/v1.15.0...v1.16.2)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: serve-static
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 10:57:01 +02:00
Angus McLeod
b8459ef445
Update metadata (#524) 2024-06-28 08:36:20 -07:00
Angus McLeod
0a3eb4fa28
Don't require existing wp comments to show wp comments with setting (#523) 2024-06-27 11:13:28 -07:00
Angus McLeod
6b2ba54c8e
Only parse query_string if it exists (#522) 2024-06-21 08:42:36 -07:00
Angus McLeod
deacab2662
Update and improve webhooks (#519)
* Update and improve webhooks

Changes:
- Add email matching as an identification basis for Update Userdata webhook.
- Standardise webhook data processing and responses.
- Add get_discourse_webhook_data utility method.
- Improve Webhook admin panel UX and descriptions.

Misc:
- Update phpcs usage

* Fix php 5.6 and 7.0 syntax checks

* Fix phpcs issues arising from update

* Remove ineffective nbsp from admin page
2024-06-19 09:08:22 -07:00
dependabot[bot]
7c5e32b266
Bump braces from 3.0.2 to 3.0.3 in /blocks/comments (#521)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 11:02:29 +02:00
dependabot[bot]
ecf275975f
Bump braces from 3.0.2 to 3.0.3 in /admin/discourse-sidebar (#520)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:59:42 +02:00
Angus McLeod
7f16f3fa5e
Two Five Three (#518)
* FIX: Better HTML decoding support

See further:
- https://developer.wordpress.org/reference/functions/wp_specialchars_decode/
- https://meta.discourse.org/t/ampersands-getting-over-escaped-going-from-wordpress-to-discourse/300004/7?u=angus

* Two Five Three
2024-05-01 10:32:41 -07:00
Angus McLeod
99325e1519
Bump version and add release notes (#517) 2024-04-08 16:46:08 +08:00
Angus McLeod
79ddb79660
Add log viewer checks (#516) 2024-04-05 23:50:32 +08:00
Angus McLeod
21a1453eae
Handle PHP deprecations (#515)
* Update deprecated callable use

See https://wiki.php.net/rfc/deprecate_partially_supported_callables

* Update phpunit config
2024-04-03 11:00:35 -07:00
Thomas Göttgens
5a272ec782
Just match existing users on request, don't create new ones. (#414)
* Just match existing users on request, don't create new ones. Useful if you want to use discourse primarily as a sso solution.

* Add consistent naming, linting and a unit test

---------

Co-authored-by: Angus McLeod <angus@mcleod.org.au>
2024-04-03 10:59:57 -07:00
dependabot[bot]
0d80531040
Bump the npm_and_yarn group group in /blocks/comments with 2 updates (#503)
Bumps the npm_and_yarn group group in /blocks/comments with 2 updates: [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) and [axios](https://github.com/axios/axios).


Updates `@wordpress/scripts` from 24.6.0 to 27.5.0
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@27.5.0/packages/scripts)

Updates `axios` from 0.25.0 to 1.6.8
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.25.0...v1.6.8)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
  dependency-group: npm_and_yarn-security-group
- dependency-name: axios
  dependency-type: indirect
  dependency-group: npm_and_yarn-security-group
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 17:36:35 -04:00
dependabot[bot]
23d6271248
Bump @sideway/formula from 3.0.0 to 3.0.1 in /blocks/comments (#479)
Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](https://github.com/sideway/formula/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@sideway/formula"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:29:33 -04:00
dependabot[bot]
03503e8dfe
Bump webpack from 5.75.0 to 5.91.0 in /blocks/comments (#509)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.91.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.91.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:29:19 -04:00
dependabot[bot]
d8d7e7404f
Bump tough-cookie from 4.1.2 to 4.1.3 in /blocks/comments (#483)
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:28:58 -04:00
dependabot[bot]
8495a70694
Bump word-wrap from 1.2.3 to 1.2.5 in /blocks/comments (#507)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:28:43 -04:00
dependabot[bot]
09624a8f81
Bump the npm_and_yarn group in /admin/discourse-sidebar with 2 updates (#508)
Bumps the npm_and_yarn group in /admin/discourse-sidebar with 2 updates: [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) and [tough-cookie](https://github.com/salesforce/tough-cookie).


Updates `@wordpress/scripts` from 14.0.1 to 27.5.0
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@27.5.0/packages/scripts)

Updates `tough-cookie` from 2.5.0 to 4.1.3
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v2.5.0...v4.1.3)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
  dependency-group: npm_and_yarn-security-group
- dependency-name: tough-cookie
  dependency-type: indirect
  dependency-group: npm_and_yarn-security-group
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:28:26 -04:00
dependabot[bot]
ac6771ef0f
Bump postcss from 8.4.19 to 8.4.38 in /blocks/comments (#511)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.19 to 8.4.38.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.19...8.4.38)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:27:48 -04:00
dependabot[bot]
fa33243338
Bump browserify-sign from 4.2.1 to 4.2.2 in /admin/discourse-sidebar (#492)
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:21:20 -04:00
dependabot[bot]
10fb9d6a04
Bump express from 4.18.2 to 4.19.2 in /blocks/comments (#506)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 15:20:39 -04:00
dependabot[bot]
705906cb18
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /blocks/comments (#505)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-24 10:57:45 -04:00
Angus McLeod
7d34ae81c8
Convert HTML entities in titles before sending to Discourse (#504)
* Convert HTML entities in titles before sending to Discourse

* Fix linting
2024-03-22 13:34:41 -07:00
dependabot[bot]
16a44d2f1b
Bump follow-redirects from 1.15.2 to 1.15.6 in /blocks/comments (#502)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-21 14:52:58 -04:00
Angus McLeod
10fe7fbe4d
Update versions and release notes (#500) 2024-01-29 14:11:19 -08:00
Angus McLeod
6edf730cbc
Update wp_new_user_notification override to latest core version (#499) 2024-01-24 14:11:25 -08:00
Beda Schmid
164dd6c9e5
Update admin.php (#498)
- [Fixed] Wrong option accessed to retrieve the `max-tags` value
2024-01-23 10:08:34 -08:00
Angus McLeod
89d4f09f30
Add publish_to_discourse utility function (#497)
* Add publish_to_discourse utility function

* Apply linting

* Make PHP 8 linter happy

* Add custom option support
2024-01-22 12:09:04 -08:00
Angus McLeod
3b220942dc
Two Five Zero (#494)
- Post publishing code improvements
- PHPUnit updated to PHPUnit 9
2023-12-22 00:15:51 +08:00
Angus McLeod
8b1a7d68d8
Update to PHPUnit 9 (#493)
* Update phpunit

* phpunit dependency should only be require-dev

* Exclude tests from CI php version syntax check

* We only need to run sniff and jshint on the latest supported version

* Run tests on php 8.2
2023-11-14 16:55:36 -08:00
Simon Cossar
d5d84d9db5
DEV: Refactor xmlrpc_publish_post_to_discourse (#491)
* Refactor xmlrpc_publish_post_to_discourse; Return wp_mail success response from publish_failure_notification.

* Add missing doc comments; don't use magic method to access title.

* Pass post title to sync_to_discourse without setting it as a variable; Use '__return_true' in add_filter callback.
2023-10-30 09:38:54 -07:00
Simon Cossar
70fbc7ca32
DEV: Refactor publish_post_after_save function (#488)
* Refactor publish_post_after_save function

* Simplify return statements; move update_post_meta call out of force_publish_post function.

* Simplify publish_to_discourse condition; Add tests for the force-publish option.

* Use gmdate() instead of date() in force_publish_max_age test.

* Add force_publish_allowed method and property; Update unit tests.

* Remove type declaration from property. Not suported in < php7.4
2023-10-20 09:50:02 -07:00
dependabot[bot]
7a810ab710
Bump @babel/traverse from 7.20.1 to 7.23.2 in /blocks/comments (#490)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.1 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 15:53:54 +02:00
dependabot[bot]
6b6829fa97
Bump @babel/traverse from 7.13.0 to 7.23.2 in /admin/discourse-sidebar (#489)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.13.0 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 15:27:06 +02:00
dependabot[bot]
e2657990a3
Bump word-wrap from 1.2.3 to 1.2.4 in /admin/discourse-sidebar (#482)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 00:03:55 +02:00
Angus McLeod
0e4e7d944b
Two Four Nine (#480)
* WP < 5.5 backwards compatibility

* WP 5.1.2 to 5.3 compatibility

* Fix linting

* Fix test workflow matrix

* Matrix requires array

* Update multisite phpunit config

* More linting fixes

* Update metadata

* Update release note
2023-03-09 16:37:10 -07:00
Daniel Thomas
2c498b73ec
Add missing initialisation of optional parameter (#461)
Before $comment_type was a required parameter following an optional parameter and this results in:
```Deprecated: Required parameter $comment_type follows optional parameter $perform_sync in [redacted]/wp-content/plugins/wp-discourse/lib/utilities.php on line 338```
This then completely breaks login on our Wordpress instance. Adding ```= null``` seems to fix the problem.

Co-authored-by: Angus McLeod <angus@mcleod.org.au>
2023-02-15 12:17:16 -08:00