Skip to content

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
RensTillmann committed Jun 7, 2019
1 parent dcd25a1 commit 8688ec6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Jun 06, 2019 - Version 4.6.9
### Jun 07, 2019 - Version 4.6.91
- Improved: Custom ajax handler compatible with older WP versions (tested up to v4.7)
- Added: Option to define a so called `specifier` to position the counter for `Email Labels` when using Dynamic Columns, example:
- `Product %d quantity:` would be converted into `Product 3 quantity:`
Expand Down
2 changes: 1 addition & 1 deletion src/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Jun 06, 2019 - Version 4.6.9
### Jun 07, 2019 - Version 4.6.91
- Improved: Custom ajax handler compatible with older WP versions (tested up to v4.7)
- Added: Option to define a so called `specifier` to position the counter for `Email Labels` when using Dynamic Columns, example:
- `Product %d quantity:` would be converted into `Product 3 quantity:`
Expand Down
17 changes: 14 additions & 3 deletions src/super-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Super Forms - Drag & Drop Form Builder
* Plugin URI: http://codecanyon.net/user/feeling4design
* Description: Build forms anywhere on your website with ease.
* Version: 4.6.9
* Version: 4.6.91
* Author: feeling4design
* Author URI: http://codecanyon.net/user/feeling4design
* Text Domain: super-forms
Expand All @@ -41,7 +41,7 @@ final class SUPER_Forms {
*
* @since 1.0.0
*/
public $version = '4.6.9';
public $version = '4.6.91';
public $slug = 'super-forms';

/**
Expand Down Expand Up @@ -366,8 +366,19 @@ private function init_hooks() {
// @since 4.7.0 - trigger onchange for tinyMCE editor, this is used for the calculator add-on to count words
add_filter('tiny_mce_before_init', array( $this, 'onchange_tinymce' ) );

}
add_action( 'upgrader_process_complete', array( $this, 'upgrader_process_complete',10, 2);

}
public function upgrader_process_complete( $upgrader_object, $options ) {
$current_plugin_path_name = plugin_basename( __FILE__ );
if ($options['action'] == 'update' && $options['type'] == 'plugin' ){
foreach($options['plugins'] as $each_plugin){
if ($each_plugin==$current_plugin_path_name){
error_log( "SF updated", 0 );
}
}
}
}

public function onchange_tinymce( $init ) {
ob_start();
Expand Down

0 comments on commit 8688ec6

Please sign in to comment.