Switch from create_function to a fixed function for the plugin page activation admin notice. Fixes #11763 props dd32.

git-svn-id: https://develop.svn.wordpress.org/trunk@12636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-01-07 07:41:13 +00:00
parent 471ccb4fac
commit 820991ac95
2 changed files with 12 additions and 3 deletions

View File

@@ -1124,4 +1124,15 @@ function settings_fields($option_group) {
wp_nonce_field("$option_group-options");
}
/**
* Outputs the notice message for multisite regarding activation of plugin page.
*
* @since 3.0
* @return none
*/
function _admin_notice_multisite_activate_plugins_page() {
$message = sprintf( __( 'The plugins page is not visible to normal users. It must be activated first. %s' ), '<a href="ms-options.php#menu">' . __( 'Activate' ) . '</a>' );
echo "<div class='error'><p>$message</p></div>";
}
?>