Title: [Bug report] Wrong arguments order for &#039;wp_parse_args&#039;
Last modified: August 20, 2016

---

# [Bug report] Wrong arguments order for 'wp_parse_args'

 *  [frankobrillo](https://wordpress.org/support/users/frankobrillo/)
 * (@frankobrillo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/bug-report-wrong-arguments-order-for-wp_parse_args/)
 * 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](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/](http://wordpress.org/extend/plugins/wp-paginate/)

The topic ‘[Bug report] Wrong arguments order for 'wp_parse_args'’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-paginate/assets/icon-128x128.png?rev=1566512)
 * [WP-Paginate](https://wordpress.org/plugins/wp-paginate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-paginate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-paginate/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-paginate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-paginate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-paginate/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [frankobrillo](https://wordpress.org/support/users/frankobrillo/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/bug-report-wrong-arguments-order-for-wp_parse_args/)
 * Status: not resolved