Make WordPress Core


Ignore:
Timestamp:
08/04/2008 09:01:09 PM (18 years ago)
Author:
westi
Message:

Plugin Install GSOC project first code drop. Props DD32 see #6015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r8137 r8540  
    434434
    435435                $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';
    437443
    438444                echo "<h4>$label</h4>\n";
    439                 echo "<h5><a href='$link'>$title</a></h5>&nbsp;<span>(<a href='$dlink'>" . __( 'Download' ) . "</a>)</span>\n";
     445                echo "<h5><a href='$link'>$title</a></h5>&nbsp;<span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n";
    440446                echo "<p>$description</p>\n";
    441447        }
Note: See TracChangeset for help on using the changeset viewer.