Skip to content

Commit 8f00753

Browse files
committed
fix Notice in admin panel
1 parent 5c3296a commit 8f00753

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

dw-question-answer.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: A WordPress plugin was make by DesignWall.com to build an Question Answer system for support, asking and comunitcate with your customer
55
* Author: DesignWall
66
* Author URI: http://www.designwall.com
7-
* Version: 1.4.3.1
7+
* Version: 1.4.3.2
88
* Text Domain: dwqa
99
* @since 1.4.0
1010
*/
@@ -39,7 +39,7 @@ class DW_Question_Answer {
3939
public function __construct() {
4040
$this->dir = DWQA_DIR;
4141
$this->uri = DWQA_URI;
42-
$this->version = '1.4.3.1';
42+
$this->version = '1.4.3.2';
4343

4444
// load posttype
4545
$this->question = new DWQA_Posts_Question();
@@ -69,7 +69,6 @@ public function __construct() {
6969
// All init action of plugin will be included in
7070
add_action( 'init', array( $this, 'init' ) );
7171
add_action( 'widgets_init', array( $this, 'widgets_init' ) );
72-
add_action( 'upgrader_process_complete', array( $this, 'register_upgrade_plugin' ), 10, 2 );
7372
register_activation_hook( __FILE__, array( $this, 'activate_hook' ) );
7473
register_deactivation_hook( __FILE__, array( $this, 'deactivate_hook' ) );
7574
}
@@ -205,16 +204,6 @@ public function activate_hook() {
205204
// dwqa_posttype_init();
206205
}
207206

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-
218207
public function deactivate_hook() {
219208
$this->permission->remove_permision_caps();
220209

inc/Admin/Welcome.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function welcome() {
1818
}
1919

2020
public function admin_notices() {
21-
if ( !isset( $_COOKIE['qa-pro-notice'] ) && 'off' != $_COOKIE['qa-pro-notice'] ) {
21+
if ( !isset( $_COOKIE['qa-pro-notice'] ) ) {
2222
echo '<div id="dwqa-message" class="notice is-dismissible"><p>To support this plugin and get more features, <a href="http://bit.ly/dwqa-pro" target="_blank">upgrade to DW Question & Answer Pro &rarr;</a></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
2323
}
2424
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: designwall, Farid-Gh, scheunemann, gciprian, Ahmet Kolcu, Astroten
33
Tags: question, answer, support, quora, stackoverflow
44
Requires at least: 3.0.1
55
Tested up to: 4.4.2
6-
Stable tag: 1.4.3.1
6+
Stable tag: 1.4.3.2
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -85,6 +85,9 @@ Visit our [Github](https://github.com/designwall/dw-question-answer) project or
8585

8686
== Changelog ==
8787

88+
= 1.4.3.2 =
89+
Quick fix
90+
8891
= 1.4.3.1 =
8992
Quick fix and update some language file.
9093

0 commit comments

Comments
 (0)