[wp-trac] [WordPress Trac] #31951: WP_Press_This::_limit_string() needs to check if mb_strlen() is available

WordPress Trac noreply at wordpress.org
Sat Apr 11 19:05:04 UTC 2015


#31951: WP_Press_This::_limit_string() needs to check if mb_strlen() is available
--------------------------+-------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.2
Component:  Press This    |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 [source:trunk/src/wp-admin/includes/class-wp-press-this.php at 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31951>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list