The above issues could be properly fixed with the following steps, respectively:
widget_contentfilters (there is already a
widget_titlefilter). An easier, but less effecive solution would be adding
after_contentarguments to the sidebar registration function.
- Total rewrite of
get_search_form(). It’s a weird way to accomplish a relatively simple task function. I believe this bugs been around since version 3.0 (the trac ticket is nearly 2 years old). I’m sure the problem has at least been patched, it just hasn’t made its way into the core yet.
- Creation of a new function, or set of functions. I actually submitted a function I’d been using in my themes to gather all this information in a meaningful way, but I guess I was just reinventing the wheel because someone beat me to the punch… THREE YEARS AGO. Why this great function hasn’t been added to the core for that long is beyond me.
Solutions for the Meantime
If and until these proper fixes are implemented, I have devised a few workaround solutions. This code will reproduce the functionality of the above fixes, but without the ability to rewrite the core, they aren’t nearly as elegant as they could be.
The next three pages in this post are about the problems I just listed in order, if you want to skip to a particular one.