[wp-trac] [WordPress Trac] #21960: Exporter doesn't exclude auto-drafts when calculating the authors list
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 21 21:36:35 UTC 2012
#21960: Exporter doesn't exclude auto-drafts when calculating the authors list
--------------------------+--------------------
Reporter: westi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Export | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by nacin):
Replying to [comment:1 westi]:
> I wrote some tests for this (attached) but we can really use them at the
moment because these functions are defined inside export_wp and that
throws headers already sent errors and phpunit marks the test as having
errors.
>
> Ideally we should make these functions more globally available - the
export includes are only included when we load export.php anyway.
Yep, they should just be pulled into export.php. Defining functions inside
functions is a pretty silly endeavor.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21960#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list