From 3fe0d5e688366f38d40d3aa7b39a0102b41a87b8 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 8 Jan 2012 12:36:17 +0000 Subject: [PATCH] Show Changelog by default for "View version x.y.z details" links for Plugin updates. Props linuxologos. Fixes #19208 git-svn-id: http://svn.automattic.com/wordpress/trunk@19711 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 2 +- wp-admin/update-core.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 2359cc4186..a5828c186b 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -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 . '§ion=changelog&TB_iframe=true&width=600&height=800'); $wp_list_table = _get_list_table('WP_Plugins_List_Table'); diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index e8a9dfd4de..701a66034a 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -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 . '§ion=changelog&TB_iframe=true&width=640&height=662'); $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version); $details = sprintf('%3$s.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);