Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

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

    r28673 r29206  
    852852function validate_active_plugins() {
    853853    $plugins = get_option( 'active_plugins', array() );
    854     // validate vartype: array
     854    // Validate vartype: array.
    855855    if ( ! is_array( $plugins ) ) {
    856856        update_option( 'active_plugins', array() );
     
    868868    $invalid = array();
    869869
    870     // invalid plugins get deactivated
     870    // Invalid plugins get deactivated.
    871871    foreach ( $plugins as $plugin ) {
    872872        $result = validate_plugin( $plugin );
     
    11201120    }
    11211121
    1122     // If the parent doesn't already have a submenu, add a link to the parent
    1123     // as the first item in the submenu. If the submenu file is the same as the
    1124     // parent file someone is trying to link back to the parent manually. In
    1125     // this case, don't automatically add a link back to avoid duplication.
     1122    /*
     1123     * If the parent doesn't already have a submenu, add a link to the parent
     1124     * as the first item in the submenu. If the submenu file is the same as the
     1125     * parent file someone is trying to link back to the parent manually. In
     1126     * this case, don't automatically add a link back to avoid duplication.
     1127     */
    11261128    if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
    11271129        foreach ( (array)$menu as $parent_menu ) {
     
    11381140
    11391141    $_registered_pages[$hookname] = true;
    1140     // backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
     1142
     1143    /*
     1144     * Backward-compatibility for plugins using add_management page.
     1145     * See wp-admin/admin.php for redirect from edit.php to tools.php
     1146     */
    11411147    if ( 'tools.php' == $parent_slug )
    11421148        $_registered_pages[get_plugin_page_hookname( $menu_slug, 'edit.php')] = true;
    11431149
    1144     // No parent as top level
     1150    // No parent as top level.
    11451151    $_parent_pages[$menu_slug] = $parent_slug;
    11461152
Note: See TracChangeset for help on using the changeset viewer.