mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@15264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e3d5fb602b
commit
d22bec05b6
@ -103,13 +103,13 @@ if (empty ($importers)) {
|
||||
if ( !empty($plugins) ) {
|
||||
$keys = array_keys($plugins);
|
||||
$plugin_file = $plugin_slug . '/' . $keys[0];
|
||||
$action = '<a href="' . wp_nonce_url(admin_url('plugins.php?action=activate&plugin=' . $plugin_file . '&from=import'), 'activate-plugin_' . $plugin_file) .
|
||||
$action = '<a href="' . esc_url(wp_nonce_url(admin_url('plugins.php?action=activate&plugin=' . $plugin_file . '&from=import'), 'activate-plugin_' . $plugin_file)) .
|
||||
'"title="' . esc_attr__('Activate importer') . '"">' . $data[0] . '</a>';
|
||||
}
|
||||
}
|
||||
if ( empty($action) )
|
||||
$action = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug .
|
||||
'&from=import&TB_iframe=true&width=600&height=550') . '" class="thickbox" title="' .
|
||||
$action = '<a href="' . esc_url(admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug .
|
||||
'&from=import&TB_iframe=true&width=600&height=550')) . '" class="thickbox" title="' .
|
||||
esc_attr__('Install importer') . '">' . $data[0] . '</a>';
|
||||
} else {
|
||||
$action = "<a href='" . esc_url("admin.php?import=$id") . "' title='" . esc_attr( wptexturize(strip_tags($data[1])) ) ."'>{$data[0]}</a>";
|
||||
@ -130,7 +130,7 @@ if (empty ($importers)) {
|
||||
}
|
||||
|
||||
if ( current_user_can('install_plugins') )
|
||||
echo '<p>' . sprintf('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.', admin_url('plugin-install.php?tab=search&type=tag&s=importer') ) . '</p>';
|
||||
echo '<p>' . sprintf('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.', esc_url(admin_url('plugin-install.php?tab=search&type=tag&s=importer')) ) . '</p>';
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user