Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all compat functions for multibyte string functions. #1123

Merged
merged 1 commit into from
May 3, 2020

Conversation

ocean90
Copy link
Member

@ocean90 ocean90 commented May 2, 2020

  • Replace gp_strlen() with mb_strlen(), WordPress provides a compat function since 4.2.0.
  • Replace gp_substr() with mb_substr(), WordPress provides a compat function since 3.2.0.
  • gp_strtolower() was only used once in gp_sanitize_slug() which is replaced with a conditon to match sanitize_title_with_dashes().
  • gp_stripos() is no longer used.

* Replace `gp_strlen()` with `mb_strlen()`, WordPress provides a compat function since 4.2.0.
* Replace `gp_substr()` with `mb_substr()`, WordPress provides a compat function since 3.2.0.
* `gp_strtolower()` was only used once in `gp_sanitize_slug()` which is replaced with a conditon to match `sanitize_title_with_dashes()`.
* `gp_stripos()` is no longer used.
@ocean90 ocean90 added this to the 3.0 milestone May 2, 2020
@ocean90 ocean90 self-assigned this May 2, 2020
@ocean90 ocean90 merged commit 6d86cc2 into develop May 3, 2020
@ocean90 ocean90 deleted the fix/mb-functions branch May 3, 2020 10:31
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.

1 participant