Changeset 8540 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 08/04/2008 09:01:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r8137 r8540 434 434 435 435 $link = clean_url($link); 436 $dlink = rtrim($link, '/') . '/download/'; 436 if( preg_match('|/([^/]+?)/?$|', $link, $matches) ) 437 $slug = $matches[1]; 438 else 439 $slug = ''; 440 441 $ilink = wp_nonce_url('plugin-install.php?tab=install-confirmation&plugin=' . $slug, 'install-plugin_' . $slug) . 442 '&TB_iframe=true&width=600&height=800'; 437 443 438 444 echo "<h4>$label</h4>\n"; 439 echo "<h5><a href='$link'>$title</a></h5> <span>(<a href='$ dlink'>" . __( 'Download' ) . "</a>)</span>\n";445 echo "<h5><a href='$link'>$title</a></h5> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n"; 440 446 echo "<p>$description</p>\n"; 441 447 }
Note: See TracChangeset
for help on using the changeset viewer.