Skip to content

Commit df80bde

Browse files
committed
Document that individual text columns are searched.
1 parent ad47e9a commit df80bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DB_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ public function prefix() {
10261026
/**
10271027
* Finds a string in the database.
10281028
*
1029-
* Searches through all or a selection of database tables for a given string, Outputs colorized references to the string.
1029+
* Searches through all of the text columns in a selection of database tables for a given string, Outputs colorized references to the string.
10301030
*
10311031
* Defaults to searching through all tables registered to $wpdb. On multisite, this default is limited to the tables for the current site.
10321032
*
@@ -1060,7 +1060,7 @@ public function prefix() {
10601060
* ---
10611061
*
10621062
* [--regex]
1063-
* : Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression.
1063+
* : Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression. Because the search is run on individual columns, you can use the `^` and `$` tokens to mark the start and end of a match, respectively.
10641064
*
10651065
* [--regex-flags=<regex-flags>]
10661066
* : Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity).

0 commit comments

Comments
 (0)