Skip to content

Add Utils\esc_like() polyfill of wpdb version.#4612

Merged
schlessera merged 1 commit intomasterfrom
esc_like
Jan 15, 2018
Merged

Add Utils\esc_like() polyfill of wpdb version.#4612
schlessera merged 1 commit intomasterfrom
esc_like

Conversation

@gitlost
Copy link
Contributor

@gitlost gitlost commented Jan 13, 2018

Related wp-cli/db-command#65 and wp-cli/db-command#66, and also #4527 (comment)

Adds wpdb::esc_like() polyfill to utils.php. Copied directly from core.

Will be used to close wp-cli/db-command#65 and by-pass wp-cli/db-command#66.

Should also be used in search-replace-command and entity-command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internalize like_escape() and esc_sql() functions to avoid $wpdb dependency

2 participants