Skip to content

Commit 4215423

Browse files
committed
Improve comments
1 parent 722d119 commit 4215423

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wp-includes/sqlite-ast/class-wp-pdo-mysql-on-sqlite.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,12 +630,12 @@ public function __construct(
630630
throw new PDOException( 'could not find driver' );
631631
}
632632

633-
// PDO DSN supports semicolon quoting using double semicolon sequences.
634-
// Replace ";;" with "\0" to preserve quoted semicolons in "explode()".
633+
// PDO DSN supports semicolon escaping using double semicolon sequences.
634+
// Replace ";;" with "\0" to preserve escaped semicolons in "explode()".
635635
$args_string = str_replace( ';;', "\0", $dsn_parts[1] );
636636
$args = array();
637637
foreach ( explode( ';', $args_string ) as $arg ) {
638-
// Restore quoted semicolons that were replaced with "\0".
638+
// Restore escaped semicolons that were replaced with "\0".
639639
$arg = str_replace( "\0", ';', $arg );
640640

641641
// PDO DSN allows whitespace before argument name. Trim characters

0 commit comments

Comments
 (0)