Changeset 12752 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 01/18/2010 08:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r12742 r12752 29 29 function plugins_api($action, $args = null) { 30 30 31 if ( is_array($args) )31 if ( is_array($args) ) 32 32 $args = (object)$args; 33 33 … … 326 326 <tbody class="plugins"> 327 327 <?php 328 if ( empty($plugins) )328 if ( empty($plugins) ) 329 329 echo '<tr><td colspan="5">', __('No plugins match your request.'), '</td></tr>'; 330 330 331 foreach ( (array) $plugins as $plugin ){331 foreach ( (array) $plugins as $plugin ){ 332 332 if ( is_object($plugin) ) 333 333 $plugin = (array) $plugin; … … 350 350 351 351 $author = $plugin['author']; 352 if ( ! empty($plugin['author']) )352 if ( ! empty($plugin['author']) ) 353 353 $author = ' <cite>' . sprintf( __('By %s'), $author ) . '.</cite>'; 354 354 355 355 $author = wp_kses($author, $plugins_allowedtags); 356 356 357 if ( isset($plugin['homepage']) )357 if ( isset($plugin['homepage']) ) 358 358 $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>'; 359 359 … … 424 424 425 425 $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English. 426 if ( empty($section) || ! isset($api->sections[ $section ]) )426 if ( empty($section) || ! isset($api->sections[ $section ]) ) 427 427 $section = array_shift( $section_titles = array_keys((array)$api->sections) ); 428 428
Note: See TracChangeset
for help on using the changeset viewer.