WordPress.org

Make WordPress Core

Changeset 15485


Ignore:
Timestamp:
08/02/2010 05:25:54 PM (8 years ago)
Author:
ryan
Message:

Remove 'plugins page is not visible to normal users' notice. We're just not that into you.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r15484 r15485  
    826826
    827827/**
    828  * Outputs the notice message for multisite regarding activation of plugin page.
    829  *
    830  * @since 3.0.0
    831  * @return none
    832  */
    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 /**
    839828 * Grants super admin privileges.
    840829 *
  • trunk/wp-admin/plugins.php

    r15483 r15485  
    1515        if ( ! is_super_admin() )
    1616            wp_die( __( 'Cheatin&#8217; uh?' ) );
    17         else
    18             add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
    1917    }
    2018}
Note: See TracChangeset for help on using the changeset viewer.