Title: davepar's Replies | WordPress.org

---

# davepar

  [  ](https://wordpress.org/support/users/davepar/)

 *   [Profile](https://wordpress.org/support/users/davepar/)
 *   [Topics Started](https://wordpress.org/support/users/davepar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/davepar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/davepar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/davepar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/davepar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/davepar/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Re-ordering/Re-arranging Categories](https://wordpress.org/support/topic/re-orderingre-arranging-categories/)
 *  [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/re-orderingre-arranging-categories/#post-199516)
 * Or I just finished a new plug-in which accomplishes the same thing in a different
   way. It’s posted over in the Plugin Competition Wiki [http://weblogtoolscollection.com/pluginwiki/index.php?title=Category_Order](http://weblogtoolscollection.com/pluginwiki/index.php?title=Category_Order).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Format for mods?](https://wordpress.org/support/topic/format-for-mods/)
 *  Thread Starter [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/format-for-mods/#post-199260)
 * I totally agree that mods can be a mess. I think I might have figured out a way
   to make this a plug-in. I’ll give that a try.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Format for mods?](https://wordpress.org/support/topic/format-for-mods/)
 *  Thread Starter [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/format-for-mods/#post-199244)
 * Thanks, but I’m actually making a mod, not a plugin. I’m adding a sort value 
   to the “Manage, Categories” admin panel. Thus, I need to list the code I’ve changed
   in the standard WP distribution. I’ll just use some kind of diff format.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [List of Hacks and Plugins?](https://wordpress.org/support/topic/list-of-hacks-and-plugins/)
 *  [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/list-of-hacks-and-plugins/#post-188182)
 * Conveniently scattered across 4 different sites.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [reordering categories ?](https://wordpress.org/support/topic/reordering-categories/)
 *  [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/reordering-categories/#post-134680)
 * I believe it’s a bug. Check out this post: [http://wordpress.org/support/topic.php?id=28667#post-161194](http://wordpress.org/support/topic.php?id=28667#post-161194).
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Bug in apply_filters](https://wordpress.org/support/topic/bug-in-apply_filters/)
 *  Thread Starter [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/bug-in-apply_filters/#post-153928)
 * Ah, well I wish I had seen that bug this morning. Could have saved some time.
 * There is one more weird issue where even with the fix, my plugin is still called
   once with only one arg. Maybe it’s a bug specific to list_cats plug-ins. I’ll
   try to track it down.
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Bug in apply_filters](https://wordpress.org/support/topic/bug-in-apply_filters/)
 *  Thread Starter [davepar](https://wordpress.org/support/users/davepar/)
 * (@davepar)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/bug-in-apply_filters/#post-153877)
 * I just figured out a hack that gets around the issue. Replace the call to call_user_func_array()
   in apply_filters with this:
    `if ($function == 'trim') { $string = call_user_func_array(
   $function, array($string)); } else { $string = call_user_func_array($function,
   array_merge(array($string), $args)); } A more correct (although slower) solution
   would be to call get_defined_functions() and pass just the one parameter if the
   $function is in the ‘internal’ part of the array.
 * do_action seems to have a similar problem where the array union operator is being
   used.

Viewing 7 replies - 1 through 7 (of 7 total)