Make WordPress Core


Ignore:
Timestamp:
07/14/2014 07:00:24 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Add meta capability customize which is mapped to edit_theme_options.

You can now allow users to access the Customizer, say for any user who can edit_posts, via map_meta_cap or user_has_cap filter. See ticket for examples.

props westonruter, nacin.
fixes #28605.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r29153 r29170  
    13071307            $caps[] = 'do_not_allow';
    13081308        break;
     1309    case 'customize' :
     1310        $caps[] = 'edit_theme_options';
     1311        break;
    13091312    default:
    13101313        // Handle meta capabilities for custom post types.
Note: See TracChangeset for help on using the changeset viewer.