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

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 21 19:15:03 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       |
----------------------------+------------------
Changes (by ptahdunbar):

 * keywords:  needs-patch => has-patch


Comment:

 Functions in compat.php

 * http_build_query() - PHP 5.0.0
 * _() - PHP 5.0.0
 * stripos() - PHP 5.0.0
 * hash_hmac() - PHP 5.1.2
 * mb_substr() - PHP 5.0.0
 * json_encode() - PHP 5.2.0
 * json_decode() - PHP 5.2.0
 * pathinfo() - updated in PHP 5.2.0

 All of them can be removed. I left the file there but empty for future
 use. In addition, pathinfo52 can be updated to pathinfo where the
 PATHINFO_FILENAME constant was added used in wp-admin/includes/image-
 edit.php:554.

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


More information about the wp-trac mailing list