Changeset 3130077
- Timestamp:
- 08/02/2024 02:07:31 PM (19 months ago)
- Location:
- pushly/trunk
- Files:
-
- 3 edited
-
includes/admin/class-pushly-admin-post.php (modified) (4 diffs)
-
pushly.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pushly/trunk/includes/admin/class-pushly-admin-post.php
r3129754 r3130077 167 167 'pushly_audience_ids', 168 168 [ 169 'single' => true,170 'type' => 'array',171 'show_in_rest' => array(169 'single' => true, 170 'type' => 'array', 171 'show_in_rest' => array( 172 172 'schema' => array( 173 173 'type' => 'array', … … 176 176 ), 177 177 ), 178 ), 179 'auth_callback' => function () { 180 return current_user_can( 'edit_posts' ); 181 } 178 ) 182 179 ] 183 180 ); … … 510 507 $notification_payload = [ 511 508 'ID' => $post->ID, 512 'title' => stripslashes( wp_specialchars_decode($title)),513 'body' => stripslashes( wp_specialchars_decode($body)),509 'title' => stripslashes( wp_specialchars_decode( $title ) ), 510 'body' => stripslashes( wp_specialchars_decode( $body ) ), 514 511 'landing_url' => get_permalink( $post->ID ), 515 512 'schedule_date' => $post->post_date_gmt, … … 570 567 ) { 571 568 $meta = []; 572 573 if ( ! current_user_can( 'edit_posts' ) ) {574 Pushly_Admin_Util::log_to_event_stream( "insufficient_capability", "Did not send notification due to missing edit_posts capability." );575 576 return [];577 }578 569 579 570 /* -
pushly/trunk/pushly.php
r3129754 r3130077 5 5 * Plugin URI: http://pushly.com 6 6 * Description: Provide Pushly push notification capability to WordPress installations 7 * Version: 2.1. 77 * Version: 2.1.8 8 8 * Author: Pushly 9 9 * Author URI: http://pushly.com/ -
pushly/trunk/readme.txt
r3129754 r3130077 5 5 Tested up to: 6.6 6 6 Requires PHP: 5.6.20 7 Stable tag: 2.1. 77 Stable tag: 2.1.8 8 8 License: GPLv2 or later 9 9 … … 42 42 * Adds ability to send notifications directly from your WordPress site 43 43 44 = 2.1. 7=44 = 2.1.8 = 45 45 * Adds Enabled Post Types setting to enable sending notifications for custom post types
Note: See TracChangeset
for help on using the changeset viewer.