WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5347 closed enhancement (fixed)

Move export_wp() to an include file

Reported by: tellyworth Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

This is a simple refactoring job that makes it possible to call export_wp() for unit testing. The function now lives in an include file, and it no longer calls die() at the end.

Attachments (2)

export-refactor-r6324.patch (17.9 KB) - added by tellyworth 13 years ago.
export-refactor-r6324-a.patch (17.9 KB) - added by tellyworth 13 years ago.
pass author as a function parameter

Download all attachments as: .zip

Change History (5)

#1 @ryan
13 years ago

How about passing author_id to export_wp() instead of it relying on _GET?

@tellyworth
13 years ago

pass author as a function parameter

#2 @ryan
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6335]) Move export_wp() to an include. Props tellyworth. fixes #5347

#3 @darkdragon
13 years ago

  • Milestone changed from 2.5 to 2.4

Shouldn't this be moved to 2.4, since it is trunk and this was fixed on the trunk?

Note: See TracTickets for help on using tickets.