[wp-trac] [WordPress Trac] #33413: most PHP classes should be in their own file
WordPress Trac
noreply at wordpress.org
Wed Aug 26 12:39:09 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 wonderboymusic):
In [changeset:"33759"]:
{{{
#!CommitTicketReference repository="" revision="33759"
Posts: move `WP_Post` into its own file. `post.php` loads the new files,
so this is 100% BC if someone is loading `post.php` directly. New files
created using `svn cp`.
Creates:
`class-wp-post.php`
`post-functions.php`
`post.php` contains only top-level code. Class file only contains the
class. Functions file only contains functions.
See #33413.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33413#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list