WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts Widget
Bugfix: Notice: Undefined index: asc_sort_order (1 post)

  1. mpcube
    Member
    Posted 2 years ago #

    Hello!

    I get warnings about index "asc_sort_order" not set in CategoryPosts->widget().

    Changing

    $sort_order = (bool) $instance['asc_sort_order'] ? 'ASC' : 'DESC';

    to

    $sort_order = isset($instance['asc_sort_order']) ? 'ASC' : 'DESC';

    fixes this.

    Grüße, Matthias

    http://wordpress.org/extend/plugins/category-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic