#31951 closed defect (bug) (fixed)
WP_Press_This::_limit_string() needs to check if mb_strlen() is available
| Reported by: | ocean90 | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Press This | Version: | 4.2 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
trunk/src/wp-admin/includes/class-wp-press-this.php@32106#L329
WP_Press_This::_limit_string() uses mb_strlen() but mbstring can be disabled. Therefore we need a check if the function exists.
mb_substr() is not affected because we provide a compat version.
Related: #30633
Attachments (2)
Change History (7)
This ticket was mentioned in Slack in #core by drew. View the logs.
12 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If we need a compat function, 31951.patch (from #29573) is similar to our current
mb_substr()compat implementation.Otherwise, just need a
function_exists()check.