WSOD after upgrading to 3.1

I had the same issue after upgrading my local environment (wordpress/xamp). I ran http://localhost/wordpress/wp-admin/upgrade.php and then I could get back in to the admin. I then had to update the database and upgrade to 3.1 again. After that all seems to be fine. Hope it helps you too!

Hooking in to replace the Sidebar/Widget areas

You should look into having your sidebars utilize the remove action function. Then you can remove a sidebar and replace it in a function any number of ways. For instance (this examples using a conditional based on a page called some-page. function change_sidebar_yay() { if ( is_single(‘some-page’) ) { remove_action( ‘old_sidebar’, ‘your_function’ ); //this is … Read more

Admin Theme customization

You are missing the hyphen in your admin_print_styles hook. function kd_plugin_admin_menu() { /* Register our plugin page */ $page = add_submenu_page( ‘edit.php’, __( ‘KD Plugin’, ‘kdPlugin’ ), __( ‘KD Plugin’, ‘kdPlugin’ ), ‘administrator’, __FILE__, ‘kd_plugin_manage_menu’ ); /* Using registered $page handle to hook stylesheet loading */ add_action( ‘admin_print_styles-‘ . $page, ‘kd_plugin_admin_styles’ ); }

New custom theme option (text input) giving index error

Wrap the call in an isset() conditional in this line: <input id=”cpt_theme_options[cpt_sm_dribbble_handle]” class=”regular-text” type=”text” name=”cpt_theme_options[cpt_sm_dribbble_handle]” value=”<?php esc_attr_e($options[‘cpt_sm_dribbble_handle’]); ?>” /> Try something like this: $cpt_sm_dribbble_handle = ( isset( $options[‘cpt_sm_dribbble_handle’]) ? $options[‘cpt_sm_dribbble_handle’]) : ” ); <input id=”cpt_theme_options[cpt_sm_dribbble_handle]” class=”regular-text” type=”text” name=”cpt_theme_options[cpt_sm_dribbble_handle]” value=”<?php esc_attr_e($cpt_sm_dribbble_handle); ?>” /> EDIT Note: your other alternative is to set default options on init, so … Read more