Skip to content

Commit

Permalink
Remove Unwanted if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patilvikasj committed Aug 25, 2020
1 parent c495071 commit 6fd96b1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,7 @@ public static function get_user_by_key( $key ) {
*/
public function get_posts_by_query() {

if( ! check_ajax_referer( 'ajax_target_url_nonce', 'security' ) ) {
wp_die( __( "You are not authorized to perform this action", 'bsfsidebars' ) );
}

check_ajax_referer( 'ajax_target_url_nonce', 'security' );
$search_string = isset( $_POST['q'] ) ? sanitize_text_field( $_POST['q'] ) : '';
$data = array();
$result = array();
Expand Down

0 comments on commit 6fd96b1

Please sign in to comment.