How to make Blog Templates plugin WP 3.0 compatible
-
I have the awesome MU plugin “blog templates”, but can’t get it to work properly with WP 3.0. My first wall is getting the plugin to add a sub-menu.
Here is the function:
function gb_templates_addmenu() { $objCurrUser = wp_get_current_user(); $objUser = wp_cache_get($objCurrUser->id, 'users'); if (function_exists('add_submenu_page') && is_site_admin($objUser->user_login)) { // does not use add_options_page, because it is site-wide configuration, // not blog-specific config, but side-wide add_submenu_page('wpmu-admin.php', 'Blog Templates', 'Blog Templates', 9, basename(__FILE__), 'gb_templates_options_panel'); } }
I changed the “wpmu-admin.php” to ms-admin.php thinking it would adjust for the new 3.0 file system change. What else am I missing here?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to make Blog Templates plugin WP 3.0 compatible’ is closed to new replies.