Plugin Directory

Changeset 1514471


Ignore:
Timestamp:
10/14/2016 05:04:25 AM (9 years ago)
Author:
layotte
Message:

Tagging 1.2.0

Location:
pigeon-pack
Files:
68 added
4 edited

Legend:

Unmodified
Added
Removed
  • pigeon-pack/trunk/campaign-post-type.php

    r1054686 r1514471  
    117117}
    118118
     119if ( !function_exists( 'pigeonpack_campaign_sortable_columns' ) ) {
     120   
     121    /**
     122     * Called by 'manage_edit_pigeonpack_campaign_sortable_columns' filter settings sortable custom columns
     123     *
     124     * @since 1.1.0
     125     *
     126     * @param array $columns Current columns for pigeon pack campaign post type
     127     * @param array $columns
     128     */
     129    function manage_edit_pigeonpack_campaign_sortable_columns( $columns ) {
     130        $columns['campaign_type'] = 'campaign_type';     
     131        return $columns;
     132    }
     133    add_filter( 'manage_edit-pigeonpack_campaign_sortable_columns', 'manage_edit_pigeonpack_campaign_sortable_columns' );
     134   
     135}
     136
     137
    119138if ( !function_exists( 'pigeonpack_human_readable_campaign_type' ) ) {
    120139       
  • pigeon-pack/trunk/functions.php

    r1109184 r1514471  
    881881       
    882882        global $alt_body;
     883       
    883884        $campaign = get_post( $campaign );
     885       
     886        if ( empty( $campaign ) ) {
     887            //Campaign no longer exists
     888            return;
     889        }
     890
     891        // so we dont send multiple emails to the same person
     892        $sent = array();
    884893   
    885894        //just incase the campaign was set to draft, stop processing here
    886         if ( 'publish' !== $campaign->post_status )
     895        if ( 'publish' !== $campaign->post_status ) {
    887896            return;
     897        }
    888898   
    889899        $pigeonpack_settings = get_pigeonpack_settings();
     
    960970                    $subscriber_headers = apply_filters( 'subscriber_loop_pigeonpack_headers', array_merge( $headers, array( $content_type ) ), $subscriber );
    961971           
    962                     wp_mail( $email, strip_tags( $merged_subject ), $body, $subscriber_headers );
     972                    if ( !in_array( $email, $sent ) ) {
     973                       
     974                        wp_mail( $email, strip_tags( $merged_subject ), $body, $subscriber_headers );
     975                        $sent[] = $email;
     976                       
     977                    }
     978                   
    963979                   
    964980                }
  • pigeon-pack/trunk/pigeonpack.php

    r1192825 r1514471  
    1212Description: Free and easy email marketing, newsletters, and campaigns; built into your WordPress dashboard!
    1313Author: layotte
    14 Version: 1.1.0
     14Version: 1.2.0
    1515Author URI: http://pigeonpack.com/
    1616Tags: email, marketing, email marketing, newsletters, email newsletters, campaigns, email campaigns, widget, form, mailing lists
     
    2727
    2828//Define global variables...
    29 define( 'PIGEON_PACK_VERSION' , '1.1.0' );
     29define( 'PIGEON_PACK_VERSION' , '1.2.0' );
    3030define( 'PIGEON_PACK_DB_VERSION', '1.0.0' );
    3131define( 'PIGEON_PACK_API_URL', 'http://pigeonpack.com/api' );
  • pigeon-pack/trunk/readme.txt

    r1192825 r1514471  
    44Requires at least: 3.4
    55Tested up to: 4.3
    6 Stable tag: 1.1.0
     6Stable tag: 1.2.0
    77
    88Free and easy email marketing, newsletters, and campaigns; built into your WordPress dashboard!
     
    6464
    6565== Changelog ==
     66
     67= 1.2.0 =
     68* Adding column sortability on campaign type column
     69* Ading check to make sure old campaigns exist before trying to send mail
     70* Adding check to ensure a single user doesn't get sent multiples of the same email
    6671
    6772= 1.1.0 =
Note: See TracChangeset for help on using the changeset viewer.