Plugin Directory

Changeset 3130077


Ignore:
Timestamp:
08/02/2024 02:07:31 PM (19 months ago)
Author:
pushlydev
Message:

Release 2.1.8

Location:
pushly/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pushly/trunk/includes/admin/class-pushly-admin-post.php

    r3129754 r3130077  
    167167                    'pushly_audience_ids',
    168168                    [
    169                         'single'        => true,
    170                         'type'          => 'array',
    171                         'show_in_rest'  => array(
     169                        'single'       => true,
     170                        'type'         => 'array',
     171                        'show_in_rest' => array(
    172172                            'schema' => array(
    173173                                'type'  => 'array',
     
    176176                                ),
    177177                            ),
    178                         ),
    179                         'auth_callback' => function () {
    180                             return current_user_can( 'edit_posts' );
    181                         }
     178                        )
    182179                    ]
    183180                );
     
    510507                $notification_payload = [
    511508                    '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 ) ),
    514511                    'landing_url'   => get_permalink( $post->ID ),
    515512                    'schedule_date' => $post->post_date_gmt,
     
    570567    ) {
    571568        $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         }
    578569
    579570        /*
  • pushly/trunk/pushly.php

    r3129754 r3130077  
    55 * Plugin URI:        http://pushly.com
    66 * Description:       Provide Pushly push notification capability to WordPress installations
    7  * Version:           2.1.7
     7 * Version:           2.1.8
    88 * Author:            Pushly
    99 * Author URI:        http://pushly.com/
  • pushly/trunk/readme.txt

    r3129754 r3130077  
    55Tested up to: 6.6
    66Requires PHP: 5.6.20
    7 Stable tag: 2.1.7
     7Stable tag: 2.1.8
    88License: GPLv2 or later
    99
     
    4242* Adds ability to send notifications directly from your WordPress site
    4343
    44 = 2.1.7 =
     44= 2.1.8 =
    4545* Adds Enabled Post Types setting to enable sending notifications for custom post types
Note: See TracChangeset for help on using the changeset viewer.