Changeset 1075536
- Timestamp:
- 01/26/2015 03:00:32 AM (11 years ago)
- Location:
- awesome-support/trunk
- Files:
-
- 6 edited
-
awesome-support.php (modified) (2 diffs)
-
class-awesome-support.php (modified) (1 diff)
-
includes/admin/views/system-status.php (modified) (1 diff)
-
includes/class-email-notifications.php (modified) (3 diffs)
-
includes/class-product-sync.php (modified) (3 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
awesome-support/trunk/awesome-support.php
r1072407 r1075536 11 11 * Plugin URI: http://getawesomesupport.com 12 12 * 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. 013 * Version: 3.1.1 14 14 * Author: ThemeAvenue 15 15 * Author URI: http://themeavenue.net … … 29 29 *----------------------------------------------------------------------------*/ 30 30 31 define( 'WPAS_VERSION', '3.1. 0' );31 define( 'WPAS_VERSION', '3.1.1' ); 32 32 define( 'WPAS_DB_VERSION', '1' ); 33 33 define( 'WPAS_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) ); -
awesome-support/trunk/class-awesome-support.php
r1072407 r1075536 767 767 } 768 768 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 770 777 unset( $filename[count($filename)-1] ); // Remove the template name 771 778 $filename = implode( '/', $filename ); -
awesome-support/trunk/includes/admin/views/system-status.php
r1049994 r1075536 211 211 </thead> 212 212 <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> 213 231 <tr> 214 232 <td class="row-title"><?php _e( 'Submission Confirmation', 'wpas' ); ?></td> -
awesome-support/trunk/includes/class-email-notifications.php
r1072407 r1075536 49 49 } 50 50 51 /* Set the e-mail content type to HTML */ 52 add_filter( 'wp_mail_content_type', array( $this, 'set_html_mime_type' ) ); 53 51 54 /* Set the post ID */ 52 55 $this->post_id = $post_id; … … 491 494 return $this->fetch( apply_filters( 'wpas_email_notifications_pre_fetch_' . $part, $value, $this->post_id ) ); 492 495 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'; 493 518 } 494 519 … … 570 595 'subject' => $subject, 571 596 'body' => $body, 572 'header '=> $headers,597 'headers' => $headers, 573 598 'attachments' => '' 574 599 ) 575 600 ); 576 601 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; 578 613 579 614 } -
awesome-support/trunk/includes/class-product-sync.php
r1072407 r1075536 264 264 protected function create_term_object( $post ) { 265 265 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 266 271 /* Try to get the term data from the post meta */ 267 272 $term_data = get_post_meta( $post->ID, '_wpas_product_term', true ); … … 449 454 if ( $this->append ) { 450 455 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 ) ) { 452 457 $new_terms[] = $term; 453 458 } … … 457 462 /* Create the term object for each post */ 458 463 foreach ( $query->posts as $key => $post ) { 464 465 if ( !is_a( $post, 'WP_Post' ) ) { 466 continue; 467 } 459 468 460 469 /* Create the term object */ -
awesome-support/trunk/readme.txt
r1072407 r1075536 6 6 Requires at least: 3.5.1 7 7 Tested up to: 4.1 8 Stable tag: 3.1. 08 Stable tag: 3.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 128 128 == Changelog == 129 129 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 130 136 = 3.1.0 = 131 137 … … 135 141 * Ask for a password only once on the registration form 136 142 * Add e-mail verification to the registration form (uses MailGun, free account required) 143 * Hide about page from the menu 137 144 * Allow e-mail to be used as the login for clients 138 145 * Improve agent assignment function … … 146 153 * Fixed some notices on the ticket single page 147 154 * Few bugfixes 148 149 * Hide about page from the menu150 155 151 156 = 3.0.1 = … … 162 167 == Upgrade Notice == 163 168 164 This version fixes a few bugs and introduces a lot of new features169 This 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.