Changeset 37221 for trunk/src/wp-admin/plugin-install.php
- Timestamp:
- 04/16/2016 04:42:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugin-install.php
r34891 r37221 107 107 if ( $tab === 'upload' ) { 108 108 $href = self_admin_url( 'plugin-install.php' ); 109 $ text = _x( 'Browse', 'plugins' );109 $upload_tab_class = ' upload-tab'; 110 110 } else { 111 111 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 112 $ text = __( 'Upload Plugin' );112 $upload_tab_class = ''; 113 113 } 114 echo ' <a href="' . $href . '" class="upload page-title-action">' . $text . '</a>'; 114 115 printf( ' <a href="%s" class="upload-view-toggle page-title-action%s"><span class="upload">%s</span><span class="browse">%s</span></a>', 116 $href, 117 $upload_tab_class, 118 __( 'Upload Plugin' ), 119 __( 'Browse Plugins' ) 120 ); 115 121 } 116 122 ?> 117 123 </h1> 124 125 <div class="upload-plugin-wrap<?php echo $upload_tab_class; ?>"> 126 <?php 127 /* 128 * Output the upload plugin form on every plugin install screen, so it can be 129 * displayed via JavaScript rather then opening up the devoted upload plugin page. 130 */ 131 install_plugins_upload(); ?> 132 </div> 118 133 119 134 <?php
Note: See TracChangeset
for help on using the changeset viewer.