Skip to content

Commit e2d63fa

Browse files
authored
Merge pull request #92 from bgrgicak/fix/show-table-status-php7-compatibility
Replace <<<SQL with " to fix PHP 7 compatibility
2 parents d9c8276 + d87c13c commit e2d63fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wp-includes/sqlite/class-wp-sqlite-translator.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3214,8 +3214,7 @@ function ( $row ) use ( $name_map ) {
32143214

32153215
$database_expression = $this->rewriter->skip();
32163216
$stmt = $this->execute_sqlite_query(
3217-
<<<SQL
3218-
SELECT
3217+
"SELECT
32193218
name as `Name`,
32203219
'myisam' as `Engine`,
32213220
10 as `Version`,
@@ -3238,8 +3237,7 @@ function ( $row ) use ( $name_map ) {
32383237
WHERE
32393238
type='table'
32403239
AND name LIKE :pattern
3241-
ORDER BY name
3242-
SQL,
3240+
ORDER BY name",
32433241

32443242
array(
32453243
':pattern' => $pattern,

0 commit comments

Comments
 (0)