Skip to content

Commit

Permalink
Merge pull request #42 from szepeviktor/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
aristath authored Jul 20, 2023
2 parents 44a7c4f + 676a1c9 commit 3306576
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions wp-includes/sqlite/class-wp-sqlite-crosscheck-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ private function crosscheck( $query, $sqlite_retval ) {
continue;
}
if ( $factor === 'rows_affected' && $mysql_retval === $mysql ) {
// SQLite doesn't provide the rowcount() functionallity
// SQLite doesn't provide the rowcount() functionality
continue;
}
if ( $factor === 'retval' && $GLOBALS['mysql']->rows_affected === $mysql ) {
// SQLite doesn't provide the rowcount() functionallity
// SQLite doesn't provide the rowcount() functionality
continue;
}
echo "======================================================\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ public function isnull( $field ) {
*
* As 'IF' is a reserved word for PHP, function name must be changed.
*
* @param unknonw $expression the statement to be evaluated as true or false.
* @param unknown $true statement or value returned if $expression is true.
* @param unknown $false statement or value returned if $expression is false.
* @param mixed $expression the statement to be evaluated as true or false.
* @param mixed $true statement or value returned if $expression is true.
* @param mixed $false statement or value returned if $expression is false.
*
* @return unknown
* @return mixed
*/
public function _if( $expression, $true, $false ) {
return ( true === $expression ) ? $true : $false;
Expand Down
4 changes: 2 additions & 2 deletions wp-includes/sqlite/class-wp-sqlite-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1683,9 +1683,9 @@ private function preprocess_string_literal( $value ) {
private function preprocess_like_expr( &$token ) {
/*
* This code handles escaped wildcards in LIKE clauses.
* If we are within a LIKE experession, we look for \_ and \%, the
* If we are within a LIKE expression, we look for \_ and \%, the
* escaped LIKE wildcards, the ones where we want a literal, not a
* wildcard match. We change the \ escape for an ASCII \x1a (SUB) character,
* wildcard match. We change the \ escape for an ASCII \x1A (SUB) character,
* so the \ characters won't get munged.
* These \_ and \% escape sequences are in the token name, because
* the lexer has already done stripcslashes on the value.
Expand Down

0 comments on commit 3306576

Please sign in to comment.