[wp-trac] [WordPress Trac] #16918: Take out unnecessary compat functions from compat.php

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 15:41:31 UTC 2011


#16918: Take out unnecessary compat functions from compat.php
------------------------------------+------------------
 Reporter:  markjaquith             |       Owner:
     Type:  task (blessed)          |      Status:  new
 Priority:  normal                  |   Milestone:  3.2
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------

Comment (by aaroncampbell):

 I decided to double check everything:
 * `http_build_query()` & `_http_build_query()` can be removed:
 http://php.net/manual/en/url.installation.php
 * `_()` '''cannot''' be removed:
 http://php.net/manual/en/gettext.installation.php
 * `stripos()` can be removed:
 http://php.net/manual/en/strings.installation.php
 * `hash_hmac()` & `_hash_hmac()` can be removed:
 http://php.net/manual/en/hash.installation.php
 * `mb_substr()` & `_mb_substr()` '''cannot''' be removed:
 http://php.net/manual/en/mbstring.installation.php
 * `htmlspecialchars_decode()` can be removed:
 http://php.net/manual/en/strings.installation.php
 * `json_encode()` & `json_decode()` can be removed:
 http://php.net/manual/en/json.installation.php
 * `pathinfo52()` can be removed according to notes:
 http://php.net/manual/en/function.pathinfo.php

 I don't see why we have `_mb_substr()` so I combined it with `mb_substr()`
 and made a new patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16918#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list