WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
[Bug report] Wrong arguments order for 'wp_parse_args' (1 post)

  1. frankobrillo
    Member
    Posted 1 year ago #

    Around line #109 the function 'wp_parse_args' is called. According to the WP Codex, the arguments should be 1) the input argument and 2) the default argument. See here: http://codex.wordpress.org/Function_Reference/wp_parse_args

    Line 109:
    $r = wp_parse_args($args, $this->options);

    Should be:
    $r = wp_parse_args($this->options, $args);

    Assuming that $this -> options contains customised options and $args all default values.

    http://wordpress.org/extend/plugins/wp-paginate/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.