Title: 3.2 | Make WordPress Themes

---

#  Tag Archives: 3.2

 [  ](https://profiles.wordpress.org/chipbennett/) [Chip Bennett](https://profiles.wordpress.org/chipbennett/)
2:43 pm _on_ July 1, 2011     
Tags: 3.2, [best practices ( 2 )](https://make.wordpress.org/themes/tags/best-practices/),
[Settings API ( 5 )](https://make.wordpress.org/themes/tags/settings-api/)   

# 󠀁[WordPress 3.2: Fixing the edit_theme_options/manage_options bug](https://make.wordpress.org/themes/2011/07/01/wordpress-3-2-fixing-the-edit_theme_optionsmanage_options-bug/)󠁿

Theme Developers:

Many of you are aware of a minor bug in the Settings APIAPI An API or Application
Programming Interface is a software intermediary that allows programs to interact
with each other and share data in limited, clearly defined ways. implementation 
for Themes, in which `add_theme_page()` is passed the “`edit_theme_options`” capability,
but the settings form submission via options.php requires the “`manage_options`”
capability, resulting in users with the Editor role having access to the settings
page, but being unable to submit the settings page form.

Fortunately, [WordPress 3.2 adds a new filter](https://core.trac.wordpress.org/ticket/14365)
that can be used to resolve this issue: `option_page_capability_{option_page}`, 
where `{option_page}` is the name of the option page, as defined in the fourth parameter
passed to `add_theme_page()`.

To get an idea of how to implement the fix, refer to [the patch for the filter](https://core.trac.wordpress.org/attachment/ticket/14365/14365.diff),
which also includes an implemented fix for TwentyEleven. The key is to ensure that
the capability passed to the hook is the same as the capability passed to add_theme_page.

Here’s one example of how to implement:

First, create a function to return the “edit_theme_options”:

    ```
    function themeslug_get_options_page_cap() {
        return 'edit_theme_options';
    }
    ```

Then, hook the function:

    ```
    add_filter( 'option_page_capability_themeslug-options', 'themeslug_get_options_page_cap' );
    ```

Then, ensure consistency with the add_theme_page() call. Notice that I replace the
hard-coded string with the previously defined function:

    ```
    add_theme_page(
        'Theme Name Options',
        'Theme Name Options',
        themeslug_get_options_page_cap(),
        'themeslug-options',
        'themeslug_callback_function'
    );
    ```

If you’re already testing against the 3.2 Release CandidateRelease Candidate A beta
version of software with the potential to be a final product, which is ready to 
release unless significant bugs emerge. (and you are, aren’t you?), you should now
be able to save Theme settings as a user with the Editor role.

[#3-2](https://make.wordpress.org/themes/tags/3-2/), [#best-practices](https://make.wordpress.org/themes/tags/best-practices/),
[#settings-api](https://make.wordpress.org/themes/tags/settings-api/)

 [  ](https://profiles.wordpress.org/chipbennett/) [Chip Bennett](https://profiles.wordpress.org/chipbennett/)
9:28 pm _on_ May 16, 2011     
Tags: 3.2, [jquery ( 2 )](https://make.wordpress.org/themes/tags/jquery/)

# 󠀁[Important information for Theme develope…](https://make.wordpress.org/themes/2011/05/16/important-information-for-theme-develope/)󠁿

Important information for Theme developers regarding [jQuery changes in WordPress 3.2](http://lists.automattic.com/pipermail/wp-hackers/2011-May/039347.html).
If you use jQuery, please read!

[#3-2](https://make.wordpress.org/themes/tags/3-2/), [#jquery](https://make.wordpress.org/themes/tags/jquery/)

 [  ](https://profiles.wordpress.org/chipbennett/) [Chip Bennett](https://profiles.wordpress.org/chipbennett/)
11:38 am _on_ May 12, 2011     
Tags: 3.2   

# 󠀁[Theme reviewers and developers: WordPres…](https://make.wordpress.org/themes/2011/05/12/theme-reviewers-and-developers-wordpres/)󠁿

Theme reviewers and developers: [WordPress 3.2 Beta 1 is upon us](https://wordpress.org/news/2011/05/wordpress-3-2-beta-1/).

**Reviewers**, now is the time to switch your test environments to the betaBeta 
A pre-release of software that is given out to a large group of users to trial under
real conditions. Beta versions have gone through alpha testing in-house and are 
generally fairly close in look, feel and function to the final product; however,
design changes often occur as part of the process. (e.g. using the [WordPress Beta Tester](https://wordpress.org/extend/plugins/wordpress-beta-tester/)
PluginPlugin A plugin is a piece of software containing a group of functions that
can be added to a WordPress website. They can extend functionality or add new features
to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party.), and to start identifying any potential
changes to the Guidelines based on the 3.2 release. (There shouldn’t be many this
cycle.)

**Developers**: now is a great time to switch your development environments to the
beta (e.g. using the [WordPress Beta Tester](https://wordpress.org/extend/plugins/wordpress-beta-tester/)
Plugin), to start working out any issues that might be introduced in the new code.

[#3-2](https://make.wordpress.org/themes/tags/3-2/)