From d22bec05b61b5c68202f0c65cfbedecaae795838 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 15 Jun 2010 20:31:44 +0000 Subject: [PATCH] Two birds with one stone. fixes #13902, props ocean90, wahgnube. fixes #13555, props hakre. git-svn-id: http://svn.automattic.com/wordpress/trunk@15264 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import.php | 8 ++++---- wp-includes/post-template.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/import.php b/wp-admin/import.php index 71f3c47db..d3ade57a2 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -103,13 +103,13 @@ if (empty ($importers)) { if ( !empty($plugins) ) { $keys = array_keys($plugins); $plugin_file = $plugin_slug . '/' . $keys[0]; - $action = '' . $data[0] . ''; } } if ( empty($action) ) - $action = '' . $data[0] . ''; } else { $action = "{$data[0]}"; @@ -130,7 +130,7 @@ if (empty ($importers)) { } if ( current_user_can('install_plugins') ) - echo '

' . sprintf('If the importer you need is not listed, search the plugins directory to see if an importer is available.', admin_url('plugin-install.php?tab=search&type=tag&s=importer') ) . '

'; + echo '

' . sprintf('If the importer you need is not listed, search the plugins directory to see if an importer is available.', esc_url(admin_url('plugin-install.php?tab=search&type=tag&s=importer')) ) . '

'; ?> diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 8f43b54c6..e86071662 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -135,7 +135,7 @@ function get_the_title( $id = 0 ) { * @param int $id Optional. Post ID. */ function the_guid( $id = 0 ) { - echo esc_url( get_the_guid($id) ); + echo esc_url( get_the_guid( $id ) ); } /**