Changeset 13520 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 03/01/2010 12:50:55 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/plugin-install.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r12859 r13520 310 310 <th scope="col" class="num"><?php _e('Rating'); ?></th> 311 311 <th scope="col" class="desc"><?php _e('Description'); ?></th> 312 <th scope="col" class="action-links"><?php _e('Actions'); ?></th>313 312 </tr> 314 313 </thead> … … 320 319 <th scope="col" class="num"><?php _e('Rating'); ?></th> 321 320 <th scope="col" class="desc"><?php _e('Description'); ?></th> 322 <th scope="col" class="action-links"><?php _e('Actions'); ?></th>323 321 </tr> 324 322 </tfoot> … … 355 353 $author = wp_kses($author, $plugins_allowedtags); 356 354 357 if ( isset($plugin['homepage']) )358 $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>';359 360 355 $action_links = array(); 361 356 $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . 362 357 '&TB_iframe=true&width=600&height=550') . '" class="thickbox onclick" title="' . 363 esc_attr($name) . '">' . __('Install') . '</a>'; 358 esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __('Install') . '</a>'; 359 if ( isset( $plugin['homepage'] ) ) 360 $action_links[] = '<a target="_blank" href="' . esc_attr( $plugin['homepage'] ) . '" title="' . esc_attr( sprintf( __( 'More information on %s' ), $name ) ) . '">' . __('Info') . '</a>'; 364 361 365 362 $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin); 366 363 ?> 367 364 <tr> 368 <td class="name"><?php echo $title; ?></td> 365 <td class="name"><strong><?php echo $title; ?></strong> 366 <div class="action-links"><?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?></div> 367 </td> 369 368 <td class="vers"><?php echo $version; ?></td> 370 369 <td class="vers"> … … 379 378 </td> 380 379 <td class="desc"><?php echo $description, $author; ?></td> 381 <td class="action-links"><?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?></td>382 380 </tr> 383 381 <?php
Note: See TracChangeset
for help on using the changeset viewer.