Changeset 1220 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 02/04/2015 07:05:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r1219 r1220 20 20 // Load uploader. 21 21 include_once plugin_dir_path( __FILE__ ) . 'upload.php'; 22 23 24 /**25 * Things to change on deactivation.26 */27 function wporg_themes_deactivate() {28 $admin = get_role( 'editor' );29 $admin->remove_cap( 'approve_themes' );30 }31 register_deactivation_hook( __FILE__, 'wporg_themes_deactivate' );32 22 33 23 /**
Note: See TracChangeset
for help on using the changeset viewer.