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 ) ); } /**