Make WordPress Core


Ignore:
Timestamp:
04/01/2010 11:38:37 PM (16 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

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

    r13920 r13921  
    363363                    switch ( $status['status'] ) {
    364364                        case 'install':
    365                             if ( $url )
     365                            if ( $status['url'] )
    366366                                $action_links[] = '<a href="' . $status['url'] . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __('Install Now') . '</a>';
    367367                            break;
    368368                        case 'update_available':
    369                             if ( $url )
     369                            if ( $status['url'] )
    370370                                $action_links[] = '<a href="' . $status['url'] . '" title="' . esc_attr( sprintf( __( 'Update to %s' ), $status['version'] ) ) . '">' . sprintf(__('Update to version %s'), $status['version']) . '</a>';
    371371                            break;
     
    527527        switch ( $status['status'] ) {
    528528            case 'install':
    529                 if ( $url )
     529                if ( $status['url'] )
    530530                    echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Now') . '</a>';
    531531                break;
    532532            case 'update_available':
    533                 if ( $url )
     533                if ( $status['url'] )
    534534                    echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>';
    535535                break;
Note: See TracChangeset for help on using the changeset viewer.