[wp-trac] [WordPress Trac] #33413: most PHP classes should be in their own file

WordPress Trac noreply at wordpress.org
Wed Aug 26 12:44:30 UTC 2015


#33413: most PHP classes should be in their own file
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:  wonderboymusic
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |     Focuses:
----------------------------+-----------------------------

Comment (by pento):

 Replying to [comment:20 kovshenin]:
 > {{{
 > PHP Fatal error:  Cannot declare class WP_Http, because the name is
 already in use in /home/kovshenin/htdocs/develop.lo/src/wp-includes/class-
 http.php on line 15
 > }}}

 Good news! The vast majority of plugins that include `class-http.php` as
 well as `http.php` are either using `include_once()`, or wrapping it in a
 `class_exists( 'WP_Http' )` check.

 These were the only two plugins I found that would likely run into the
 same bug.

 {{{
 clicksold-wordpress-plugin
 rrze-access
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33413#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list