Changeset 15485
- Timestamp:
- 08/02/2010 05:25:54 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r15484 r15485 826 826 827 827 /** 828 * Outputs the notice message for multisite regarding activation of plugin page.829 *830 * @since 3.0.0831 * @return none832 */833 function _admin_notice_multisite_activate_plugins_page() {834 $message = sprintf( __( 'The plugins page is not visible to normal users. It must be activated first. %s' ), '<a href="' . esc_url( admin_url( 'ms-options.php#menu' ) ) . '">' . __( 'Activate' ) . '</a>' );835 echo "<div class='error'><p>$message</p></div>";836 }837 838 /**839 828 * Grants super admin privileges. 840 829 * -
trunk/wp-admin/plugins.php
r15483 r15485 15 15 if ( ! is_super_admin() ) 16 16 wp_die( __( 'Cheatin’ uh?' ) ); 17 else18 add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );19 17 } 20 18 }
Note: See TracChangeset
for help on using the changeset viewer.