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
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ First half of escaping for LIKE special characters % and _ before preparing for
9
9
WP_CLI\Utils\esc_like( $text )
10
10
11
11
<div>
12
-
<strong>$text</strong> (string) The raw text to be escaped. The input typed by the user should have no<br />
13
-
<strong>@return</strong> (string) in the form of a LIKE phrase. The output is not SQL safe. Call $wpdb::prepare()<br />
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 /> or real_escape next.<br />
14
14
</div>
15
15
16
16
@@ -21,8 +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
-
extra or deleted slashes.
25
-
or real_escape next.
26
24
27
25
28
26
*Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.*
Copy file name to clipboardExpand all lines: internal-api/wp-cli-utils-http-request.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
@@ -11,7 +11,7 @@ Make a HTTP request to a remote URL.
11
11
<div>
12
12
<strong>$method</strong> (string) HTTP method (GET, POST, DELETE, etc.).<br />
13
13
<strong>$url</strong> (string) URL to make the HTTP request to.<br />
14
-
<strong>$data</strong> (array|null) Data to send either as a query string for GET/HEAD requests,<br />
14
+
<strong>$data</strong> (array|null) Data to send either as a query string for GET/HEAD requests,<br /> or in the body for POST requests.<br />
15
15
<strong>$headers</strong> (array) Add specific headers to the request.<br />
16
16
<strong>$options</strong> (array) {<br /> Optional. An associative array of additional request options.<br /> @type bool $halt_on_error Whether or not command execution should be halted on error. Default: true<br /> @type bool|string $verify A boolean to use enable/disable SSL verification<br /> or string absolute path to CA cert to use.<br /> Defaults to detected CA cert bundled with the Requests library.<br /> @type bool $insecure Whether to retry automatically without certificate validation.<br />}<br />
0 commit comments