davepar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Re-ordering/Re-arranging CategoriesOr 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.
Forum: Plugins
In reply to: Format for mods?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
In reply to: Format for mods?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
In reply to: List of Hacks and Plugins?Conveniently scattered across 4 different sites.
Forum: Fixing WordPress
In reply to: reordering categories ?I believe it’s a bug. Check out this post: http://wordpress.org/support/topic.php?id=28667#post-161194.
Forum: Requests and Feedback
In reply to: Bug in apply_filtersAh, 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
In reply to: Bug in apply_filtersI 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.