warezio
asked 7 years ago

Version 1.4.6
Notice: Undefined index: post_type in ~\\wp-content\\plugins\\dw-question-answer\\inc\\Permission.php on line 268

Start your code here

if ( isset( $wp_query->is_single ) && $wp_query->is_single && $wp_query->query_vars[\'post_type\'] == \'dwqa-question\' && $name[0] == \'edit_post\' ) {

// change to fix

if ( isset( $wp_query->is_single ) && $wp_query->is_single && isset( $wp_query->query_vars[\'post_type\'] ) && $wp_query->query_vars[\'post_type\'] == \'dwqa-question\' && $name[0] == \'edit_post\' ) {

 
Please, check that.
thanks.

1 Answers
DominicStaff
answered 7 years ago

Thank for your feedback, we have checked and updated this issue in the plugin. We will try to release the latest version as soon as possible.

Powered by DW Question & Answer Pro