Update for smarty hotfix/1.0.22
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 15:14:27 +0000 (10:14 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 15:14:27 +0000 (10:14 -0500)
Smarty update disallows php in smarty

index.php
views/admin/settings/editNotificationType.html

index 52ffa5f..fe1be44 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Billing
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: This is glmAssociate Billing Module
- * Version: 1.0.21
+ * Version: 1.0.22
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersBillingAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.21
+ * @version 1.0.22
  */
 
 /*
@@ -37,7 +37,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.21');
+define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.22');
 define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 1076829..5aa1b6b 100644 (file)
         <tr>
             <th style="text-align: right;" {if $notification.fieldRequired.message}class="glm-required"{/if}>Message:</th>
             <td {if $notification.fieldFail.message}class="glm-form-bad-input" data-tabid="glm-message"{/if}>
-                {php}
-                    wp_editor('{$notification.fieldData.message|escape:quotes}', 'glm_descr', array(
-                        'media_buttons' => false,
-                        'textarea_name' => 'message',
-                        'editor_height' => 200,
-                    ));
-                {/php}
+                {wp_editor(
+                    $notification.fieldData.message|escape:quotes,
+                    'glm_descr',
+                    json_decode('{
+                        "media_buttons":    false,
+                        "quicktags":        false,
+                        "textarea_name":    "message",
+                        "editor_height":    200
+                    }', true)
+                )}
                 {if $notification.fieldFail.message}<p>{$notification.fieldFail.message}</p>{/if}
             </td>
         </tr>