Fix for the WordPress Theme Studiopress for WordPressMU

The Studiopress theme for WordPressMU is broken. When you try to update the options you get the message “options page not found”. I have fixed the issue:
[code]
18a19
> if ( is_admin() ){ // admin actions
19a21,30
> add_action(‘admin_init’, ‘register_mysettings’ );
>
> } else {
> // non-admin enqueues, actions, and filters
> }
>
> function register_mysettings() { // whitelist options
>   register_setting( ‘Theme Options’, ‘greeting’ );
>   register_setting( ‘Theme Options’, ‘welcomemessage’ );
> }
27c38
<   <div class=’wrap’>

>   <div>
30a42,43
> <?php settings_fields(‘greeting,welcomemessage’); ?>
>
35c48
<   <p><input type=”submit” name=”Submit” value=”Update Options” /></p>

>   <p><input type=”submit” name=”Submit” value=”<?php _e(‘Update Options’); ?>” /></p>
37a51
> <?php settings_fields( ‘Theme Options’ ); ?>
43c57
< ?>
\ No newline at end of file

> ?>

[/code]

2 thoughts on “Fix for the WordPress Theme Studiopress for WordPressMU”

  1. Hi,

    I’m experiencing the same problem (studiopress theme options error when used with WordPress MU) and would like to implement your fix however because of the formatting on your site (and the Ad) I can’t really see how to go about it.

    Would it be possible to either email me the fix or mention it more clearly on your blog?

    Thanks,

    Ali

Leave a Reply