diff --git a/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php b/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
index 048aec80f..0d879dc8f 100644
--- a/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
+++ b/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
@@ -1017,6 +1017,16 @@ class PaginatorHelperTest extends CakeTestCase {
);
$this->assertTags($result, $expected);
+ $result = $this->Paginator->prev('', array('escape' => false), null, array('escape' => true));
+ $expected = array(
+ 'span' => array('class' => 'prev'),
+ 'a' => array('href' => '/', 'rel' => 'prev'),
+ '<i class="fa fa-angle-left"></i>',
+ '/a',
+ '/span'
+ );
+ $this->assertTags($result, $expected);
+
$result = $this->Paginator->prev('<< Previous', null, 'Disabled');
$expected = array(
'span' => array('class' => 'prev'),
diff --git a/lib/Cake/View/Helper/PaginatorHelper.php b/lib/Cake/View/Helper/PaginatorHelper.php
index d23799304..f5550b27f 100644
--- a/lib/Cake/View/Helper/PaginatorHelper.php
+++ b/lib/Cake/View/Helper/PaginatorHelper.php
@@ -499,8 +499,7 @@ class PaginatorHelper extends AppHelper {
if (!empty($disabledTitle) && $disabledTitle !== true) {
$title = $disabledTitle;
}
-
- $options = (array)$disabledOptions + array_intersect_key($options, array_keys($_defaults)) + $_defaults;
+ $options = (array)$disabledOptions + array_intersect_key($options, $_defaults) + $_defaults;
} elseif (!$this->{$check}($options['model'])) {
return '';
}