• Plugin Looks good but error with wp_debug

    Notice: is_main_query was called incorrectly. In pre_get_posts, use the WP_Query::is_main_query() method, not the is_main_query() function.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Thanks for pointing out the “Notice”, in fact i have already included conditional implementation

    if(function_exists('is_main_query') && is_main_query()){
    					ap_where_filter();
    				}elseif(!function_exists('is_main_query') && WP_Query::is_main_query()){
    					ap_where_filter();
    				}

    but now i am fixing it for this notice as well.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    I have updated the version.

    Thanks,
    Fahad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Slight Break..?’ is closed to new replies.