[wp-trac] [WordPress Trac] #10287: split wp-includes/classes.php
into single-class files
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 27 13:41:04 GMT 2009
#10287: split wp-includes/classes.php into single-class files
-------------------------+--------------------------------------------------
Reporter: dd32 | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Unassigned
Component: General | Version:
Severity: trivial | Keywords: dev-feedback
-------------------------+--------------------------------------------------
Right now, {{{wp-includes/classes.php}}} contains a selection of classes
which WordPress uses internally. I'd like to see the file broken up into a
few subclasses to ease integration with other software's which may use
parts of the WordPress core.
Whilst i realise there are not too many there, the files 1600 lines long,
It takes a bit to dig through it sometimes.. and like i said, it'd help
integration with other software (Primarily thinking of the WP_Error stuff
there)
Current classes:
{{{
[138] => WP
[139] => WP_Error
[140] => Walker
[141] => Walker_Page
[142] => Walker_PageDropdown
[143] => Walker_Category
[144] => Walker_CategoryDropdown
[145] => WP_Ajax_Response
}}}
The Walkers could all go in a single file.. the ajax response and WP could
stay as one, and the error put into its own file too..
Just thoughts from me, seeking feedback from others.
(My whole reasoning for this ticket, is that i was hoping not to duplicate
the code too much for just wanting to include WP_Error in a semi-
standalone script which utilises a few of WordPress's helpful files)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10287>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list