Plugin Directory

Changeset 1075536


Ignore:
Timestamp:
01/26/2015 03:00:32 AM (11 years ago)
Author:
themeavenue
Message:

Push 3.1.1

Location:
awesome-support/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • awesome-support/trunk/awesome-support.php

    r1072407 r1075536  
    1111 * Plugin URI:        http://getawesomesupport.com
    1212 * Description:       Awesome Support is a great ticketing system that will help you improve your customer satisfaction by providing a unique customer support experience.
    13  * Version:           3.1.0
     13 * Version:           3.1.1
    1414 * Author:            ThemeAvenue
    1515 * Author URI:        http://themeavenue.net
     
    2929 *----------------------------------------------------------------------------*/
    3030
    31 define( 'WPAS_VERSION',           '3.1.0' );
     31define( 'WPAS_VERSION',           '3.1.1' );
    3232define( 'WPAS_DB_VERSION',        '1' );
    3333define( 'WPAS_URL',               trailingslashit( plugin_dir_url( __FILE__ ) ) );
  • awesome-support/trunk/class-awesome-support.php

    r1072407 r1075536  
    767767        }
    768768
    769         $filename = explode( '/', $template );
     769        $filename      = explode( '/', $template );
     770        $template_name = $filename[count($filename)-1];
     771       
     772        /* Don't change the template if it's already a custom one */
     773        if ( 'single-ticket.php' === $template_name ) {
     774            return $template;
     775        }
     776
    770777        unset( $filename[count($filename)-1] ); // Remove the template name
    771778        $filename = implode( '/', $filename );
  • awesome-support/trunk/includes/admin/views/system-status.php

    r1049994 r1075536  
    211211    </thead>
    212212    <tbody>
     213        <tr>
     214            <td class="row-title"><?php _e( 'Sender Name', 'wpas' ); ?></td>
     215            <td>
     216                <?php echo wpas_get_option( 'sender_name', get_bloginfo( 'name' ) ); ?>
     217            </td>
     218        </tr>
     219        <tr>
     220            <td class="row-title"><?php _e( 'Sender E-Mail', 'wpas' ); ?></td>
     221            <td>
     222                <?php echo wpas_get_option( 'sender_email', get_bloginfo( 'admin_email' ) ); ?>
     223            </td>
     224        </tr>
     225        <tr>
     226            <td class="row-title"><?php _e( 'Reply-To E-Mail', 'wpas' ); ?></td>
     227            <td>
     228                <?php echo wpas_get_option( 'reply_email', get_bloginfo( 'admin_email' ) ); ?>
     229            </td>
     230        </tr>
    213231        <tr>
    214232            <td class="row-title"><?php _e( 'Submission Confirmation', 'wpas' ); ?></td>
  • awesome-support/trunk/includes/class-email-notifications.php

    r1072407 r1075536  
    4949        }
    5050
     51        /* Set the e-mail content type to HTML */
     52        add_filter( 'wp_mail_content_type', array( $this, 'set_html_mime_type' ) );
     53
    5154        /* Set the post ID */
    5255        $this->post_id = $post_id;
     
    491494        return $this->fetch( apply_filters( 'wpas_email_notifications_pre_fetch_' . $part, $value, $this->post_id ) );
    492495
     496    }
     497
     498    /**
     499     * Set the e-mail content type to HTML.
     500     *
     501     * @since  3.1.1
     502     * @param  string $content_type Current e-mail content type
     503     * @return string               HTML content type
     504     */
     505    function set_html_mime_type( $content_type ){
     506        return 'text/html';
     507    }
     508
     509    /**
     510     * Set the e-mail content type to plain text.
     511     *
     512     * @since  3.1.1
     513     * @param  string $content_type Current e-mail content type
     514     * @return string               Text content type
     515     */
     516    function set_text_mime_type( $content_type ){
     517        return 'text/plain';
    493518    }
    494519
     
    570595            'subject'         => $subject,
    571596            'body'            => $body,
    572             'header'          => $headers,
     597            'headers'         => $headers,
    573598            'attachments'     => ''
    574599            )
    575600        );
    576601
    577         return wp_mail( $email['recipient_email'], $email['subject'], $email['body'], implode( "\r\n", $email['headers'] ) );
     602        $mail = wp_mail( $email['recipient_email'], $email['subject'], $email['body'], implode( "\r\n", $email['headers'] ) );
     603
     604        /**
     605         * Reset the e-mail content type to text as recommended by WordPress
     606         *
     607         * @since  3.1.1
     608         * @link   http://codex.wordpress.org/Function_Reference/wp_mail
     609         */
     610        add_filter( 'wp_mail_content_type', array( $this, 'set_text_mime_type' ) );
     611
     612        return $mail;
    578613
    579614    }
  • awesome-support/trunk/includes/class-product-sync.php

    r1072407 r1075536  
    264264    protected function create_term_object( $post ) {
    265265
     266        /* If the $post is not an object we return false to avoid triggering PHP errors */
     267        if ( !is_object( $post ) ) {
     268            return false;
     269        }
     270
    266271        /* Try to get the term data from the post meta */
    267272        $term_data = get_post_meta( $post->ID, '_wpas_product_term', true );
     
    449454            if ( $this->append ) {
    450455                foreach ( $terms as $term ) {
    451                     if ( !$this->is_synced_term( $term->term_id ) ) {
     456                    if ( is_object( $term ) && !$this->is_synced_term( $term->term_id ) ) {
    452457                        $new_terms[] = $term;
    453458                    }
     
    457462            /* Create the term object for each post */
    458463            foreach ( $query->posts as $key => $post ) {
     464
     465                if ( !is_a( $post, 'WP_Post' ) ) {
     466                    continue;
     467                }
    459468
    460469                /* Create the term object */
  • awesome-support/trunk/readme.txt

    r1072407 r1075536  
    66Requires at least: 3.5.1
    77Tested up to: 4.1
    8 Stable tag: 3.1.0
     8Stable tag: 3.1.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    128128== Changelog ==
    129129
     130= 3.1.1 =
     131
     132* Do not override custom templates for the ticket details page
     133* Send HTML e-mails more reliably
     134* Bugfixes
     135
    130136= 3.1.0 =
    131137
     
    135141* Ask for a password only once on the registration form
    136142* Add e-mail verification to the registration form (uses MailGun, free account required)
     143* Hide about page from the menu
    137144* Allow e-mail to be used as the login for clients
    138145* Improve agent assignment function
     
    146153* Fixed some notices on the ticket single page
    147154* Few bugfixes
    148 
    149 * Hide about page from the menu
    150155
    151156= 3.0.1 =
     
    162167== Upgrade Notice ==
    163168
    164 This version fixes a few bugs and introduces a lot of new features
     169This version fixes a few bugs. If you want to use custom templates for the ticket details page you have to update.
Note: See TracChangeset for help on using the changeset viewer.