Make WordPress Core


Ignore:
Timestamp:
08/26/2015 03:55:00 AM (8 years ago)
Author:
wonderboymusic
Message:

HTTP: move classes into their own files, http.php loads the new files, so this is 100% BC if someone is loading http.php directly. New files created using svn cp.

class-http.php requires functions from http.php, so loading it by itself wouldn't have worked.

Creates:
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-proxy.php
class-wp-http-streams.php
http-functions.php

WP_Http remains in class-http.php.

http.php contains only top-level code. Class files only contain classes. Functions file only contains functions.

See #33413.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r33734 r33748  
    149149require( ABSPATH . WPINC . '/media.php' );
    150150require( ABSPATH . WPINC . '/http.php' );
    151 require( ABSPATH . WPINC . '/class-http.php' );
    152151require( ABSPATH . WPINC . '/widgets.php' );
    153152require( ABSPATH . WPINC . '/nav-menu.php' );
Note: See TracChangeset for help on using the changeset viewer.