id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 30594,New function to network enable a theme,igmoweb,jeremyfelt,"I haven't found any ticket asking about this but what if we create a new function to network enable/disable a theme? Right now, wp-admin/themes.php is doing the following thing to enable themes in a network: {{{ ... $allowed_themes = get_site_option( 'allowedthemes' ); switch ( $action ) { case 'enable': check_admin_referer('enable-theme_' . $_GET['theme']); $allowed_themes[ $_GET['theme'] ] = true; update_site_option( 'allowedthemes', $allowed_themes ); ... }}} We could encapsulate that in new functions, one to enabling and another to disabling. Just in case, the code was pretty easy so I upload here a patch. Thanks. ",enhancement,closed,normal,4.6,Themes,,normal,fixed,has-patch has-unit-tests,,"administration, multisite"