WordPress.org

Forums

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

  1. frankobrillo
    Member
    Posted 2 years 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

  • WP-Paginate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.