File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ const expectedFailures = [
5454 'Tests_DB::test_charset_switched_to_utf8mb4' ,
5555 'Tests_DB::test_close' ,
5656 'Tests_DB::test_delete_value_too_long_for_field with data set "too long"' ,
57- 'Tests_DB::test_escape_and_prepare with data set #0' ,
58- 'Tests_DB::test_escape_and_prepare with data set #1' ,
59- 'Tests_DB::test_escape_and_prepare with data set #2' ,
6057 'Tests_DB::test_has_cap' ,
6158 'Tests_DB::test_insert_value_too_long_for_field with data set "too long"' ,
6259 'Tests_DB::test_mysqli_flush_sync' ,
Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ public function _real_escape( $data ) {
107107 if ( ! is_scalar ( $ data ) ) {
108108 return '' ;
109109 }
110- return addslashes ( $ data );
110+ $ escaped = addslashes ( $ data );
111+ return $ this ->add_placeholder_escape ( $ escaped );
111112 }
112113
113114 /**
You can’t perform that action at this time.
0 commit comments