Plugin Installer: Disable 'Latest Version Installed' buttons.

props paulwilde.
see #26952.

Built from https://develop.svn.wordpress.org/trunk@27677


git-svn-id: http://core.svn.wordpress.org/trunk@27520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-24 03:41:15 +00:00
parent 0e215d93cd
commit c08ff58b13
1 changed files with 2 additions and 2 deletions

View File

@ -442,10 +442,10 @@ function install_plugin_information() {
echo '<a class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>'; echo '<a class="button button-primary right" href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>';
break; break;
case 'newer_installed': case 'newer_installed':
echo '<a class="button button-primary right">' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '</a>'; echo '<a class="button button-primary right disabled">' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '</a>';
break; break;
case 'latest_installed': case 'latest_installed':
echo '<a class="button button-primary right">' . __('Latest Version Installed') . '</a>'; echo '<a class="button button-primary right disabled">' . __('Latest Version Installed') . '</a>';
break; break;
} }
} }