Make WordPress Core


Ignore:
Timestamp:
04/19/2009 07:36:28 PM (15 years ago)
Author:
ryan
Message:

consolidate plugin/theme/core upgrade/install functions. Props DD32. see #7875

File:
1 edited

Legend:

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

    r10829 r11005  
    2525//These are the tabs which are shown on the page,
    2626$tabs = array();
    27 $tabs['dashboard'] = __('Search'); //TODO: Better name?
     27$tabs['dashboard'] = __('Search');
    2828if ( 'search' == $tab )
    2929    $tabs['search'] = __('Search Results');
     
    3434$tabs['updated']  = __('Recently Updated');
    3535
    36 $nonmenu_tabs = array('install', 'plugin-information', 'do_upload'); //Valid actions to perform which do not have a Menu item.
     36$nonmenu_tabs = array('plugin-information'); //Valid actions to perform which do not have a Menu item.
    3737
    3838$tabs = apply_filters('install_plugins_tabs', $tabs );
     
    6363    $sep = ( end($tabs) != $text ) ? ' | ' : '';
    6464    $class = ( $action == $tab ) ? ' class="current"' : '';
    65     $href = admin_url('plugin-install.php?tab='. $action);
     65    $href = admin_url('plugin-install.php?tab=' . $action);
    6666    echo "\t\t<li><a href='$href'$class>$text</a>$sep</li>\n";
    6767}
     
    7373<?php
    7474include('admin-footer.php');
    75 ?>
Note: See TracChangeset for help on using the changeset viewer.