|
4 | 4 | * Description: A WordPress plugin was make by DesignWall.com to build an Question Answer system for support, asking and comunitcate with your customer |
5 | 5 | * Author: DesignWall |
6 | 6 | * Author URI: http://www.designwall.com |
7 | | - * Version: 1.4.3.1 |
| 7 | + * Version: 1.4.3.2 |
8 | 8 | * Text Domain: dwqa |
9 | 9 | * @since 1.4.0 |
10 | 10 | */ |
@@ -39,7 +39,7 @@ class DW_Question_Answer { |
39 | 39 | public function __construct() { |
40 | 40 | $this->dir = DWQA_DIR; |
41 | 41 | $this->uri = DWQA_URI; |
42 | | - $this->version = '1.4.3.1'; |
| 42 | + $this->version = '1.4.3.2'; |
43 | 43 |
|
44 | 44 | // load posttype |
45 | 45 | $this->question = new DWQA_Posts_Question(); |
@@ -69,7 +69,6 @@ public function __construct() { |
69 | 69 | // All init action of plugin will be included in |
70 | 70 | add_action( 'init', array( $this, 'init' ) ); |
71 | 71 | add_action( 'widgets_init', array( $this, 'widgets_init' ) ); |
72 | | - add_action( 'upgrader_process_complete', array( $this, 'register_upgrade_plugin' ), 10, 2 ); |
73 | 72 | register_activation_hook( __FILE__, array( $this, 'activate_hook' ) ); |
74 | 73 | register_deactivation_hook( __FILE__, array( $this, 'deactivate_hook' ) ); |
75 | 74 | } |
@@ -205,16 +204,6 @@ public function activate_hook() { |
205 | 204 | // dwqa_posttype_init(); |
206 | 205 | } |
207 | 206 |
|
208 | | - // using action `upgrader_process_complete` |
209 | | - public function register_upgrade_plugin( $upgrader_object, $args ) { |
210 | | - $file_name = plugin_basename( __FILE__ ); |
211 | | - if ( isset( $args['plugins'] ) && !empty( $args['plugins'] ) ) { |
212 | | - if ( ( is_array( $args['plugins'] ) && in_array( $file_name, $args['plugins'] ) ) || ( is_string( $args['plugins'] && $file_name == $args['plugins'] ) ) ) { |
213 | | - update_option( 'dwqa_plugin_upgraded', true ); |
214 | | - } |
215 | | - } |
216 | | - } |
217 | | - |
218 | 207 | public function deactivate_hook() { |
219 | 208 | $this->permission->remove_permision_caps(); |
220 | 209 |
|
|
0 commit comments