You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal-api/wp-cli-utils-esc-like.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ First half of escaping for LIKE special characters % and _ before preparing for
10
10
11
11
<div>
12
12
<strong>$text</strong> (string) The raw text to be escaped. The input typed by the user should have no<br /> extra or deleted slashes.<br />
13
-
<strong>@return</strong> (string) in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare()<br />
13
+
<strong>@return</strong> (string) in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare()<br /> or real_escape next.<br />
14
14
</div>
15
15
16
16
@@ -21,7 +21,6 @@ First half of escaping for LIKE special characters % and _ before preparing for
21
21
Use this only before wpdb::prepare() or esc_sql(). Reversing the order is very bad for security.
22
22
23
23
Copied from core "wp-includes/wp-db.php". Avoids dependency on WP 4.4 wpdb.
24
-
or real_escape next.
25
24
26
25
27
26
*Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.*
0 commit comments