Changeset 2067769
- Timestamp:
- 04/12/2019 11:56:08 AM (7 years ago)
- Location:
- sendpress/trunk
- Files:
-
- 5 edited
-
classes/class-sendpress-base.php (modified) (1 diff)
-
classes/class-sendpress-option.php (modified) (4 diffs)
-
classes/views/class-sendpress-view-emails-edit.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sendpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendpress/trunk/classes/class-sendpress-base.php
r2059327 r2067769 9 9 class SendPress_Base { 10 10 11 /** 12 * Encrypt text data 13 **/ 14 static function _encrypt( $text, $key = 'E0fRGYRjiMlAZsubeDYzPfpJHuUjRWigHuSRRFkm1wKPCrjeKM' ) { 15 if ( function_exists( 'mcrypt_encrypt' ) ) { 16 return base64_encode( @mcrypt_encrypt( MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB ) ); 17 } else { 18 return $text; 19 } 20 } 21 22 /** 11 /** 23 12 * Decrypt Text Data 24 13 **/ -
sendpress/trunk/classes/class-sendpress-option.php
r1598832 r2067769 45 45 $options = get_option( self::$key ); 46 46 if ( is_array( $options ) && isset( $options[$name] ) ) { 47 if(isset($options[$name."_xd"])){ 48 return $options[$name."_xd"]; 49 } else { 50 $d = self::_decrypt( $options[$name] ); 51 SendPress_Option::set_encrypted($name, $d); 52 } 53 47 54 return self::_decrypt( $options[$name] ) ; 48 55 } … … 207 214 208 215 209 $options[$option ] = self::_encrypt( $value );216 $options[$option."_xd"] = $value; 210 217 211 218 return update_option(self::$key , $options); … … 216 223 $optkey = 'sendpress_sender_settings'; 217 224 $options = get_option( $optkey ); 218 $options[$sender] = self::_encrypt( serialize( $settings_array) , SENDPRESS_SENDER_KEY); 225 $options[$sender."_temp"] = serialize( $settings_array); 226 //$options[$sender] = self::_encrypt( serialize( $settings_array) , SENDPRESS_SENDER_KEY); 219 227 220 228 return update_option( $optkey , $options); … … 224 232 $optkey = 'sendpress_sender_settings'; 225 233 $options = get_option( $optkey ); 234 if(isset($options[$sender."_temp"])){ 235 return unserialize($options[$sender."_temp"]); 236 } else { 237 $d = unserialize( self::_decrypt( $options[$sender] , SENDPRESS_SENDER_KEY)); 238 SendPress_Option::set_sender($sender, $d); 239 } 240 226 241 return unserialize( self::_decrypt( $options[$sender] , SENDPRESS_SENDER_KEY)); 227 242 } -
sendpress/trunk/classes/views/class-sendpress-view-emails-edit.php
r2059327 r2067769 160 160 <?php 161 161 remove_filter( 'the_content', 'wpautop' ); 162 wp_editor( apply_filters('the_content', $post->post_content), 'content_area_one_edit', array(162 wp_editor( $post->post_content, 'content_area_one_edit', array( 163 163 'dfw' => true, 164 164 'drag_drop_upload' => true, -
sendpress/trunk/readme.txt
r2059327 r2067769 5 5 Requires at least: 4.4 6 6 Tested up to: 5.1.1 7 Stable tag: 1.10. 3.287 Stable tag: 1.10.4.10 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 Previous releases can be downloaded from [GitHub](https://github.com/brewlabs/sendpress/releases) 120 120 121 = 1.10.4.10 - 2019.4.10 = 122 * update for php 7.2 part 2 123 * update for shortcode run in editor 124 121 125 = 1.10.3.27 - 2019.3.27 = 122 126 * fix for link tracking image -
sendpress/trunk/sendpress.php
r2059327 r2067769 2 2 /* 3 3 Plugin Name: SendPress Newsletters 4 Version: 1.10. 3.284 Version: 1.10.4.10 5 5 Plugin URI: https://sendpress.com 6 6 Description: Easy to manage Newsletters for WordPress. … … 20 20 define( 'SENDPRESS_API_VERSION', 1 ); 21 21 define( 'SENDPRESS_MINIMUM_WP_VERSION', '3.6' ); 22 define( 'SENDPRESS_VERSION', '1.10. 3.28' );22 define( 'SENDPRESS_VERSION', '1.10.4.10' ); 23 23 define( 'SENDPRESS_URL', plugin_dir_url( __FILE__ ) ); 24 24 define( 'SENDPRESS_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.