Changeset 782670
- Timestamp:
- 10/04/2013 05:54:42 PM (12 years ago)
- Location:
- email-post-approval/trunk
- Files:
-
- 4 edited
-
email-post-approval.php (modified) (3 diffs)
-
email-post-approval_options.php (modified) (2 diffs)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-post-approval/trunk/email-post-approval.php
r665330 r782670 4 4 Plugin Name: Email Post Approval 5 5 Description: Ability to review and approve posts for publishing via email. 6 Version: 1.2. 16 Version: 1.2.2 7 7 Author: BinaryM Inc - Travis Lopes & Matt McInvale 8 8 Author URI: http://binarym.com/ … … 26 26 add_option('epa_send_to', get_bloginfo('admin_email')); 27 27 add_option('epa_post_statuses', array('pending')); 28 add_option('epa_email_fields', array('title', 'post_author', 'post_date', 'categories', 'tags', 'post_meta', 'body' ));28 add_option('epa_email_fields', array('title', 'post_author', 'post_date', 'categories', 'tags', 'post_meta', 'body', 'thumbnail')); 29 29 } 30 30 … … 101 101 } 102 102 endif; 103 104 if(in_array('thumbnail', get_option('epa_email_fields'))!==FALSE): 105 $message .= '<b>Featured Image: </b>' . get_the_post_thumbnail($post_data->ID, 'medium') . '<br />'; 106 107 endif; 108 103 109 if(in_array('body', get_option('epa_email_fields'))!==FALSE): 104 110 $message .= '<br /><b>Post Body:</b><br />'. str_replace('<!--more-->', '<!--more-->', $post_data->post_content) .'<br />'; -
email-post-approval/trunk/email-post-approval_options.php
r665330 r782670 22 22 array('key' => 'post_meta', 'value' => 'Post Meta'), 23 23 array('key' => 'body', 'value' => 'Post Body'), 24 array('key' => 'thumbnail', 'value' => 'Featured Image'), 24 25 ); 25 26 … … 103 104 foreach($this->post_status_types as $post_status) { 104 105 if (array_search($post_status['key'], $option_values['post_statuses']) !== FALSE) $checked = 'checked="checked"'; 106 else $checked = ''; 105 107 echo '<label><input name="post_statuses[]" type="checkbox" value="'. $post_status['key'] .'" '. $checked .'> '. $post_status['value'] .'</label><br />'; 106 $checked = '';108 107 109 } 108 110 ?> -
email-post-approval/trunk/readme.md
r665330 r782670 4 4 **Requires at least:** 3.0 5 5 6 **Tested up to:** 3. 5.16 **Tested up to:** 3.6.1 7 7 8 8 ### Description … … 10 10 11 11 ### Changelog 12 * v1.2.2 13 * Added post thumbnail option 12 14 * v1.2.1 13 15 * Patched warnings -
email-post-approval/trunk/readme.txt
r665330 r782670 3 3 Tags: database, mysql, search, replace, admin, security 4 4 Requires at least: 3.0 5 Tested up to: 3. 5.15 Tested up to: 3.6.1 6 6 Stable tag: 3.4.2 7 7 … … 21 21 22 22 == Changelog == 23 = v1.2.2 = 24 * Added post thumbnail option 23 25 = v1.2.1 = 24 26 * Patched warnings
Note: See TracChangeset
for help on using the changeset viewer.