Compare commits
29 commits
main
...
prepare_fi
Author | SHA1 | Date | |
---|---|---|---|
40f5bdc94b | |||
c75e1307df | |||
1c67f7a338 | |||
898a6baf7c | |||
2d40091866 | |||
d1c8a1266b | |||
b3f7d83bfa | |||
79bf945744 | |||
9d3f439edc | |||
d5465a3551 | |||
4b656c6457 | |||
0f1dd8be47 | |||
7fdf01356c | |||
defeff32c1 | |||
804a967233 | |||
6a931e38a4 | |||
df15c8610f | |||
a5f3d632f2 | |||
08a1172f80 | |||
67ea7f7b87 | |||
48a086765b | |||
573c6bfa2a | |||
6b4fb08337 | |||
a96ce18524 | |||
ceeb161ca6 | |||
0bed532593 | |||
743d1e13f3 | |||
557801db33 | |||
4cd1ef4aa0 |
7 changed files with 10 additions and 10 deletions
|
@ -21,7 +21,7 @@ jobs:
|
||||||
MYSQL_ROOT_PASSWORD: root
|
MYSQL_ROOT_PASSWORD: root
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
|
php-version: ['8.1', '8.2', '8.3']
|
||||||
name: PHPUnit – PHP ${{ matrix.php-version }}
|
name: PHPUnit – PHP ${{ matrix.php-version }}
|
||||||
env:
|
env:
|
||||||
extensions: mysql
|
extensions: mysql
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./vendor/
|
./vendor/
|
||||||
key: cache-composer-phpunit-2
|
key: cache-composer-phpunit-1
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: https://github.com/shivammathur/setup-php@v2
|
uses: https://github.com/shivammathur/setup-php@v2
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
**Requires at least:** 6.5
|
**Requires at least:** 6.5
|
||||||
**Tested up to:** 6.6
|
**Tested up to:** 6.6
|
||||||
**Stable tag:** 0.2.0
|
**Stable tag:** 0.2.0
|
||||||
**Requires PHP:** 7.4
|
**Requires PHP:** 8.1
|
||||||
**License:** AGPL-3.0-or-later
|
**License:** AGPL-3.0-or-later
|
||||||
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
Integrating popular event plugins with the ActivityPub plugin.
|
Integrating popular event plugins with the ActivityPub plugin.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* Text Domain: activitypub-event-bridge
|
* Text Domain: activitypub-event-bridge
|
||||||
* License: AGPL-3.0-or-later
|
* License: AGPL-3.0-or-later
|
||||||
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 8.1
|
||||||
*
|
*
|
||||||
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.0.1.
|
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.0.1.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "The ActivityPub Event Bridge help for event custom post types to federate properly.",
|
"description": "The ActivityPub Event Bridge help for event custom post types to federate properly.",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.4.0",
|
"php": ">=8.1.0",
|
||||||
"composer/installers": "^2.0"
|
"composer/installers": "^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|
|
@ -121,9 +121,9 @@ final class The_Events_Calendar extends Event {
|
||||||
/**
|
/**
|
||||||
* Get the event location.
|
* Get the event location.
|
||||||
*
|
*
|
||||||
* @return ?Place The place/venue if one is set.
|
* @return Place|array The place/venue if one is set.
|
||||||
*/
|
*/
|
||||||
public function get_location(): ?Place {
|
public function get_location(): Place|null {
|
||||||
// Get short handle for the venues.
|
// Get short handle for the venues.
|
||||||
$venues = $this->tribe_event->venues;
|
$venues = $this->tribe_event->venues;
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,7 @@ class Setup {
|
||||||
*
|
*
|
||||||
* @return \Activitypub\Transformer\Base|null
|
* @return \Activitypub\Transformer\Base|null
|
||||||
*/
|
*/
|
||||||
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
|
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base|null {
|
||||||
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
||||||
if ( 'WP_Post' !== $object_class ) {
|
if ( 'WP_Post' !== $object_class ) {
|
||||||
return $transformer;
|
return $transformer;
|
||||||
|
@ -285,7 +285,7 @@ class Setup {
|
||||||
foreach ( $this->active_event_plugins as $event_plugin ) {
|
foreach ( $this->active_event_plugins as $event_plugin ) {
|
||||||
if ( ! in_array( $event_plugin->get_post_type(), $activitypub_supported_post_types, true ) ) {
|
if ( ! in_array( $event_plugin->get_post_type(), $activitypub_supported_post_types, true ) ) {
|
||||||
$activitypub_supported_post_types[] = $event_plugin->get_post_type();
|
$activitypub_supported_post_types[] = $event_plugin->get_post_type();
|
||||||
add_post_type_support( $event_plugin->get_post_type(), 'activitypub' );
|
add_post_type_support( $event_plugin->get_post_type(), 'activitypub-event-bridge' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
update_option( 'activitypub_support_post_types', $activitypub_supported_post_types );
|
update_option( 'activitypub_support_post_types', $activitypub_supported_post_types );
|
||||||
|
|
|
@ -4,7 +4,7 @@ Tags: events, fediverse, activitypub, calendar
|
||||||
Requires at least: 6.5
|
Requires at least: 6.5
|
||||||
Tested up to: 6.6
|
Tested up to: 6.6
|
||||||
Stable tag: 0.2.0
|
Stable tag: 0.2.0
|
||||||
Requires PHP: 7.4
|
Requires PHP: 8.1
|
||||||
License: AGPL-3.0-or-later
|
License: AGPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
Integrating popular event plugins with the ActivityPub plugin.
|
Integrating popular event plugins with the ActivityPub plugin.
|
||||||
|
|
Loading…
Reference in a new issue