Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    Thread Starter mikebronner

    (@mikebronner)

    Please consider replacing the array with the following:

    array(
                    'current_page_url'   => preg_replace( "~paged?/[0-9]+/?~", "", home_url( $wp->request ) ),
                    'ajaxurl'            => admin_url( 'admin-ajax.php' ),
                    'product_cat'        => $wp_query_product_cat,
                    'products_holder_id' => (array_key_exists('products_holder_id', $br_options) ? $br_options['products_holder_id'] : null),
                    'control_sorting'    => (array_key_exists('control_sorting', $br_options) ? $br_options['control_sorting'] : null),
                    'seo_friendly_urls'  => (array_key_exists('seo_friendly_urls', $br_options) ? $br_options['seo_friendly_urls'] : null),
                    'berocket_aapf_widget_product_filters' => $post_temrs,
                    'user_func'          => (array_key_exists('user_func', $br_options) ? $br_options['user_func'] : function () {}),
                )

    Always check to make sure variables or arrays exist before using them. ?? I’ll be happy to submit any changes to your code repository.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: Undefined index: control_sorting’ is closed to new replies.