Empty search shows home page on wordpress

OK, so you have a site. It’s not set up like a blog, so you don’t have a blog or posts page. You notice that submitting the search form with nothing in it sends you to a broken home page. There are all sorts of madnesses touted to fix this involving modifying the core wordpress code, which is a terrible idea given how often it updates. stick this in your functions and ¡presto pronto! all better. This will just send you to your search page and show everything with a space in it.. add_filter( ‘request’, ‘my_request_filter’ ); function my_request_filter( $query_vars ) { if( isset( $_GET[‘s’] ) && empty( $_GET[‘s’] ) ) { $query_vars[‘s’] = ” “; } return $query_vars; }

Upgrading from 2.x to 2.6.1

I admit it, I am a bad person. I am a foolish person. I let my wordpress install lag behind on leekworld. I encountered a bit of a bug all of a sudden with advanced-cache, and decided to upgrade rather than work around it – I was on WordPress 2.2. Utter disaster.  I tried all sorts, but the upgrades just wouldn’t take.  I reconfigured my wp-config file to have all the post 2.5 stuff but it just wasn’t having it. I’ve lost the Qwilm! theme as well. I loved that theme. I had tinkered with it and it made me happy.  I think I may have to make a new one just like it. This one’s just plain vanilla right…