Changeset 1654720
- Timestamp:
- 05/11/2017 01:11:24 AM (9 years ago)
- Location:
- postmark-approved-wordpress-plugin/trunk
- Files:
-
- 5 edited
-
assets/css/admin.css (modified) (1 diff)
-
assets/js/admin.js (modified) (3 diffs)
-
page-settings.php (modified) (2 diffs)
-
postmark.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
postmark-approved-wordpress-plugin/trunk/assets/css/admin.css
r1512009 r1654720 30 30 display: block; 31 31 } 32 33 .footnote { 34 font-size: 13px; 35 } 36 input[type=text] { 37 width: 300px; 38 } -
postmark-approved-wordpress-plugin/trunk/assets/js/admin.js
r1512009 r1654720 1 (function ($) {1 (function ($) { 2 2 $(function() { 3 3 var settings = postmark.settings; … … 19 19 20 20 $.post(ajaxurl, { 21 '_wpnonce' : $('#_wpnonce').val(), 21 22 'action': 'postmark_save', 22 23 'data': JSON.stringify(data) … … 30 31 $(document).on('click', '.send-test', function() { 31 32 $.post(ajaxurl, { 33 '_wpnonce' : $('#_wpnonce').val(), 32 34 'action': 'postmark_test', 33 35 'email': $('.pm-test-email').val(), -
postmark-approved-wordpress-plugin/trunk/page-settings.php
r1653796 r1654720 15 15 <a class="nav-tab" rel="test">Send Test Email</a> 16 16 <a class="nav-tab" rel="overrides">Overrides</a> 17 <?php if ( 'POSTMARK_PLUGIN_TESTING' == $_ENV['POSTMARK_PLUGIN_TESTING'] ) : ?> 17 18 <?php if ( isset($_ENV['POSTMARK_PLUGIN_TESTING']) && 'POSTMARK_PLUGIN_TESTING' == $_ENV['POSTMARK_PLUGIN_TESTING'] ) : ?> 18 19 <a class="nav-tab" rel="plugin-testing">Plugin Testing</a> 19 20 <?php endif; ?> … … 106 107 To learn more about <code>wp_mail</code>, see the <a href="https://developer.wordpress.org/reference/functions/wp_mail/">WordPress Codex page.</a> 107 108 </div> 108 <?php if ( 'POSTMARK_PLUGIN_TESTING' == $_ENV['POSTMARK_PLUGIN_TESTING'] ) : ?>109 <?php if ( isset($_ENV['POSTMARK_PLUGIN_TESTING']) &&'POSTMARK_PLUGIN_TESTING' == $_ENV['POSTMARK_PLUGIN_TESTING'] ) : ?> 109 110 <div class="tab-content tab-plugin-testing"> 110 111 <table class="form-table" style="max-width:740px;"> -
postmark-approved-wordpress-plugin/trunk/postmark.php
r1653796 r1654720 4 4 Plugin URI: https://postmarkapp.com/ 5 5 Description: Overwrites wp_mail to send emails through Postmark 6 Version: 1.9. 46 Version: 1.9.5 7 7 Author: Andrew Yates & Matt Gibbs 8 8 */ … … 61 61 // We check the wp_nonce. 62 62 if ( ! isset($_POST['_wpnonce']) || ! wp_verify_nonce( $_POST['_wpnonce'], 'postmark_nonce' ) ) { 63 wp_die(__(' Cheatin’ uh?'));63 wp_die(__('We were unable to verify this request, please reload the page and try again.')); 64 64 } 65 65 66 66 // We check that the current user is allowed to update settings. 67 67 if ( ! current_user_can('manage_options') ) { 68 wp_die(__(' Cheatin’ uh?'));68 wp_die(__('We were unable to verify this request, please reload the page and try again.')); 69 69 } 70 70 … … 125 125 // We check the wp_nonce. 126 126 if ( ! isset($_POST['_wpnonce']) || ! wp_verify_nonce( $_POST['_wpnonce'], 'postmark_nonce' ) ) { 127 wp_die(__(' Cheatin’ uh?'));127 wp_die(__('We were unable to verify this request, please reload the page and try again.')); 128 128 } 129 129 130 130 // We check that the current user is allowed to update settings. 131 131 if ( ! current_user_can('manage_options') ) { 132 wp_die(__(' Cheatin’ uh?'));132 wp_die(__('We were unable to verify this request, please reload the page and try again.')); 133 133 } 134 134 135 135 // We check that we have received some data. 136 136 if ( ! isset($_POST['data']) ) { 137 wp_die(__(' Cheatin’ uh?'));137 wp_die(__('We were unable to verify this request, please reload the page and try again.')); 138 138 } 139 139 -
postmark-approved-wordpress-plugin/trunk/readme.txt
r1653796 r1654720 3 3 Tags: postmark, email, smtp, notifications, wp_mail, wildbit 4 4 Requires at least: 4.0 5 Tested up to: 4. 6.15 Tested up to: 4.7.4 6 6 Stable tag: trunk 7 7 … … 62 62 == Changelog == 63 63 64 = v1.9.5 = 65 * Update javascript to fix settings update issue. 66 64 67 = v1.9.4 = 65 68 * Added `postmark_error` and `postmark_response` actions to the plugin, to intercept API results after calling wp_mail. You can register callbacks for these using `add_action` (more info here: https://developer.wordpress.org/reference/functions/add_action/)
Note: See TracChangeset
for help on using the changeset viewer.