Skip to content

Commit

Permalink
Show Changelog by default for "View version x.y.z details" links for …
Browse files Browse the repository at this point in the history
…Plugin updates. Props linuxologos. Fixes #19208

git-svn-id: http://svn.automattic.com/wordpress/trunk@19711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
dd32 committed Jan 8, 2012
1 parent f60ca6d commit 3fe0d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-admin/includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function wp_plugin_update_row( $file, $plugin_data ) {
$plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
$plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags );

$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&TB_iframe=true&width=600&height=800');
$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&section=changelog&TB_iframe=true&width=600&height=800');

$wp_list_table = _get_list_table('WP_Plugins_List_Table');

Expand Down
2 changes: 1 addition & 1 deletion wp-admin/update-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function list_plugin_updates() {
$upgrade_notice = '';
}

$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&TB_iframe=true&width=640&height=662');
$details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
$details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
$details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);

Expand Down

0 comments on commit 3fe0d5e

Please sign in to comment.