Changeset 3078348
- Timestamp:
- 04/28/2024 09:58:56 PM (2 years ago)
- Location:
- wpgancio/trunk
- Files:
-
- 3 edited
-
gancio.php (modified) (1 diff)
-
oauth.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpgancio/trunk/gancio.php
r3078344 r3078348 4 4 Plugin URI: https://gancio.org 5 5 Description: Connects an user of a gancio instance to a Wordpress user so that published events are automatically pushed with Gancio API. 6 Version: 1.1 16 Version: 1.12 7 7 Author: Gancio 8 8 License: AGPL 3.0 -
wpgancio/trunk/oauth.php
r3078340 r3078348 9 9 $event = get_post( $post_id ); 10 10 11 printf(eo_get_share($post_id));12 11 // do not save if it's a draft 13 if ($event->post_status != 'publish' || !eo_get_share($post_id) ) { 14 printf("This event shouldn't be shared"); 12 if ($event->post_status != 'publish') { 15 13 return; 16 14 } … … 26 24 } 27 25 28 29 $gancio_id = get_post_meta($post_id, 'wpgancio_gancio_id', TRUE);30 31 26 $start_datetime = eo_get_schedule_start( 'U', $post_id ); 32 27 … … 35 30 $place_name = eo_get_venue_name($venue_id); 36 31 $place_address = eo_get_venue_address($venue_id); 37 $instance_url = get_option('wpgancio_instance_url') ?: get_site_option('wpgancio_instance_url');38 32 39 33 $body = array ( … … 53 47 54 48 wpgancio_send_event_to_instance($body, $post_id); 55 56 set_transient("wpgancio_message_{$post_id}", "Event updated. <a href='{$event_url}'>{$event_url}</a>");57 update_post_meta($post_id, 'wpgancio_gancio_id', intval($data->id));58 49 } 59 50 … … 101 92 } 102 93 103 // gancio instance details104 $gancio_id = get_post_meta($post_id, 'wpgancio_gancio_id', TRUE);105 $instance_url = get_option('wpgancio_instance_url') ?: get_site_option('wpgancio_instance_url');106 107 94 // get the event start time 108 95 // the timestamp generated byt the plugin function is 2h shifted, substract 7200 s --> 2h -
wpgancio/trunk/readme.txt
r3078342 r3078348 5 5 Requires at least: 4.7 6 6 Tested up to: 6.5 7 Stable tag: 1.1 17 Stable tag: 1.12 8 8 Requires PHP: 7.0 9 9 License: AGPLv3 or later … … 19 19 20 20 == Changelog == 21 22 = 1.12 = 23 * Restore Event Organizer functionality 21 24 22 25 = 1.11 =
Note: See TracChangeset
for help on using the changeset viewer.