Correct typos in r13920. Use correct variable name. See #11050

git-svn-id: http://svn.automattic.com/wordpress/trunk@13921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-04-01 23:38:37 +00:00
parent f7b83bd893
commit c2aba0b250
1 changed files with 4 additions and 4 deletions

View File

@ -362,11 +362,11 @@ function display_plugins_table($plugins, $page = 1, $totalpages = 1){
switch ( $status['status'] ) {
case 'install':
if ( $url )
if ( $status['url'] )
$action_links[] = '<a href="' . $status['url'] . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __('Install Now') . '</a>';
break;
case 'update_available':
if ( $url )
if ( $status['url'] )
$action_links[] = '<a href="' . $status['url'] . '" title="' . esc_attr( sprintf( __( 'Update to %s' ), $status['version'] ) ) . '">' . sprintf(__('Update to version %s'), $status['version']) . '</a>';
break;
case 'latest_installed':
@ -526,11 +526,11 @@ function install_plugin_information() {
$status = install_plugin_install_status($api);
switch ( $status['status'] ) {
case 'install':
if ( $url )
if ( $status['url'] )
echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Now') . '</a>';
break;
case 'update_available':
if ( $url )
if ( $status['url'] )
echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>';
break;
case 'newer_installed':